On 17/04/23 19:58, Sergey Bugaev via Libc-alpha wrote:
> This is nicer, and is going to be required for the following changes
> to reasonably stay within the 79 column limit.
>
> No functional change.
>
> Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
LGTM, some minor nits below.
> ---
> misc/daemon.c | 88 ++++++++++++++++++++++++++++-----------------------
> 1 file changed, 49 insertions(+), 39 deletions(-)
>
> diff --git a/misc/daemon.c b/misc/daemon.c
> index 3c73ac2a..61da49b7 100644
> --- a/misc/daemon.c
> +++ b/misc/daemon.c
> @@ -43,50 +43,60 @@ static char sccsid[] = "@(#)daemon.c 8.1 (Berkeley) 6/4/93";
I think there is no need to ignore return code.
Also This code clearly comes from freeBSD.. which has since updated the code to ignore SIGHUP when the parent exits.