clone: return instead of exit()
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 22 Dec 2011 02:32:45 +0000 (21:32 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 22 Dec 2011 02:32:45 +0000 (21:32 -0500)
commit6da9f915f29c93ac54ed62e7669df7c7e18a141d
treeed04c6719b40ebbfe04cc70d6393df115c9db254
parentd5bd757350322d44f62baf35961700d4caff697f
clone: return instead of exit()

Calling exit() from the cloned process is a bad idea, because we share
file descriptors with the parent, and exit() has side-effects (anyway,
more than the low-level _exit()).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
librunas/runas.c
This page took 0.024873 seconds and 4 git commands to generate.