On Sat, Aug 13, 2011 at 09:21:43AM +0000, Christos Zoulas wrote: > In article <[email protected]>, > Timo Teräs <[email protected]> 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
