[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Fix bug #709 by daemonizing blktapctrl and closing stdin, stdout and stderr
On Tue, Aug 01, 2006 at 11:01:36AM +0100, Harry Butterworth wrote: > > Also, fileno(stdin) is nicer. > > Why? I don't think so. fclose(stdin); /* and the rest */ fd = open(...); /* fd is 0 */ close(STDIN_FILENO); /* does the wrong thing */ close(fileno(stdin)); /* does the right thing */ Cheers, Muli _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |