Subject: Re: err(3) after daemon(3) in update(8)
To: Giles Lean <giles@nemeton.com.au>
From: Bill Sommerfeld <wes@thunk.epilogue.com>
List: netbsd-bugs
Date: 07/01/1999 10:58:40
> >         daemon(0, 0);
> > 
> >         sa.sa_handler = mysync;
> >         sigemptyset(&sa.sa_mask);
> >         sa.sa_flags = 0;
> >         if (sigaction(SIGALRM, &sa, (struct sigaction *)0) < 0)
> >                 err(1, "sigaction");
> > 
> > These errors get written to /dev/null.

I'd just move the sigaction() etc., setup before the call to daemon()...

						- Bill