On Tue, Nov 06, 2012 at 02:07:21PM +0800, Gao feng wrote: > + while (fgets(line, sizeof(line), statfd) != NULL) { I wonder if libvirt prefers the getline API instead of fgets? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list