On Sat, Aug 13, 2011 at 09:21:43AM +0000, Christos Zoulas wrote: > In article <20110812054606.71cef17...@cvs.netbsd.org>, > Timo Teräs <source-changes-d@NetBSD.org> wrote: > > > >+static int > >+privsep_do_exit(void *ctx, int fd) > >+{ > >+ kill(getpid(), SIGTERM); > >+ return 0; > >+} > >+ > > Why not call exit(0) or even kill(0, SIGTERM)? Are you sure this is right?
...or _exit(0) if the purpose is to not run any atexit() handlers. Joerg