[PATCH] Use daemon(3) instead of forking manually

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

 



On Saturday 08 October 2005 12:02, Enrico Scholz wrote:
> Hello,
>
> the attached patch uses daemon(3) instead of forking manually. This
> executes setsid(2) (which is missing currently) and gives better FDs 0-2
> (it is a little bit unclean to use these standard fds for other things).
>
> daemon(3) is called with a set 'nochdir' flag to allow core-file
> generation in writable directories.
>
>

I tested this patch and would recommend to include it in vdr.

Matthias


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux