[PATCH] child should never return, it doesn't matter what
happens. otherwise, things messed up
Jeremy Allison
jra at samba.org
Tue Jan 13 17:24:25 GMT 2009
On Tue, Jan 13, 2009 at 07:00:57PM +0800, boyang wrote:
> Hi, everyone:
> fork_domain_child() should not return when select() fails,
> otherwise, it messed things up. it must just exit instead of return. We
> cannot return in child processes......
Actually, we must _exit(), not exit(). Calling exit invokes any
functions registered with atexit(), which may also mess things
up.
Jeremy.
More information about the samba-technical
mailing list