[PATCH weston v2] use _exit instead of exit if client fails to exec

2013-06-03 Thread U. Artie Eoff
From: U. Artie Eoff ullysses.a.e...@intel.com 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

RE: [PATCH weston v2] use _exit instead of exit if client fails to exec

2013-06-03 Thread Eoff, Ullysses A
Can we make sure this gets backported to 1.1, too? -Original Message- From: Eoff, Ullysses A Sent: Monday, June 03, 2013 4:23 PM To: wayland-devel@lists.freedesktop.org Cc: Eoff, Ullysses A Subject: [PATCH weston v2] use _exit instead of exit if client fails to exec From: U.

Re: [PATCH weston v2] use _exit instead of exit if client fails to exec

2013-06-03 Thread Kristian Høgsberg
On Mon, Jun 03, 2013 at 04:22:31PM -0700, U. Artie Eoff wrote: From: U. Artie Eoff ullysses.a.e...@intel.com 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