|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH] Fix bug #709 by daemonizing blktapctrl and closi
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
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [Xen-devel] [PATCH] Fix bug #709 by daemonizing blktapctrl and closing stdin, stdout and stderr, Harry Butterworth
- Re: [Xen-devel] [PATCH] Fix bug #709 by daemonizing blktapctrl and closing stdin, stdout and stderr,
Muli Ben-Yehuda <=
- Re: [Xen-devel] [PATCH] Fix bug #709 by daemonizing blktapctrl and closing stdin, stdout and stderr, Keir Fraser
- Re: [Xen-devel] [PATCH] Fix bug #709 by daemonizing blktapctrl and closing stdin, stdout and stderr, Muli Ben-Yehuda
- Re: [Xen-devel] [PATCH] Fix bug #709 by daemonizing blktapctrl and closing stdin, stdout and stderr, Harry Butterworth
- Re: [Xen-devel] [PATCH] Fix bug #709 by daemonizing blktapctrl and closing stdin, stdout and stderr, Muli Ben-Yehuda
- Re: [Xen-devel] [PATCH] Fix bug #709 by daemonizing blktapctrl and closing stdin, stdout and stderr, Keir Fraser
- Re: [Xen-devel] [PATCH] Fix bug #709 by daemonizing blktapctrl and closing stdin, stdout and stderr, Jimi Xenidis
- Re: [Xen-devel] [PATCH] Fix bug #709 by daemonizing blktapctrl and closing stdin, stdout and stderr, Keir Fraser
- Re: [Xen-devel] [PATCH] Fix bug #709 by daemonizing blktapctrl and closing stdin, stdout and stderr, Harry Butterworth
- Re: [Xen-devel] [PATCH] Fix bug #709 by daemonizing blktapctrl and closing stdin, stdout and stderr, Keir Fraser
|
|
|
|
|