Re: [RFC PATCH v2 2/7] misc: Ignore SIGHUP in daemon () while forking

2023-04-21 Thread Adhemerval Zanella Netto
On 19/04/23 13:02, Sergey Bugaev wrote: > Under certain conditions, SIGHUP will be sent to the child process when > the parent process (the one calling daemon ()) terminates -- namely, if > the parent process was the session leader and the child process was in > the same session (which will be t

[RFC PATCH v2 2/7] misc: Ignore SIGHUP in daemon () while forking

2023-04-19 Thread Sergey Bugaev
Under certain conditions, SIGHUP will be sent to the child process when the parent process (the one calling daemon ()) terminates -- namely, if the parent process was the session leader and the child process was in the same session (which will be the case after fork and until setsid) and in the for