Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: [ipsec-tools-0_8-branch] src/crypto/dist/ipsec-tools/src/racoon



On Sat, Aug 13, 2011 at 09:21:43AM +0000, Christos Zoulas wrote:
> In article <20110812054606.71CEF175D0%cvs.netbsd.org@localhost>,
> Timo Teräs  <source-changes-d%NetBSD.org@localhost> 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


Home | Main Index | Thread Index | Old Index