Re: Question about commit e8ea3d3...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 20 April 2008, Nico Schottelius wrote:
> Regarding the daemon() commit: It looks for me that daemon is Linux
> specific (as in: non-posix) [0]. As my aim for gpm2 is to run on all
> posix plattform

sorry, you're right of course.  i forgot that gpm was targetting POSIX and not 
Linux.

> So my proposal is to revoke that commit and add close of STDIN_FILENO,
> ... and connect those three fds to /dev/null as described in daemon(3).

hrm, i think using daemon() when possible would still be better.  perhaps a 
configure test to see if the function is available ?

otherwise, the code to use would be what glibc does ... open /dev/null and use 
dup() to connect STD{IN,OUT,ERR}_FILENO to that fd ...
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
gpm mailing list
gpm@xxxxxxxxxxxxxx
http://lists.linux.it/listinfo/gpm

[Index of Archives]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Gimp]     [Yosemite News]