use _exit instead of exit if client fails to exec
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Mon, 3 Jun 2013 23:22:31 +0000 (16:22 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 4 Jun 2013 04:07:10 +0000 (00:07 -0400)
commit3b64d6236c4100bf0cb9db0070bdc6175b919296
tree3dffa720b0e4131da6a02a3cd866bf201df004f7
parentb846a8d45e898dabd54bbaa570b3460f3ebb0e25
use _exit instead of exit if client fails to exec

exit() calls atexit() handlers and C++ destructors (e.g. a C++
weston module) which could destroy state that the main process
depends on (e.g. ioctl's, tmpfiles, sockets, etc...).  If an exec
fails, call _exit() instead of exit().

v2: prefer _exit over _Exit

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
src/compositor.c