[PATCH weston] compositor: return failure even if SEGV handler works

Pekka Paalanen ppaalanen at gmail.com
Fri Jun 8 00:06:06 PDT 2012


On Thu, 7 Jun 2012 16:40:16 -0400
Kristian Høgsberg <hoegsberg at gmail.com> wrote:

> On Thu, Jun 07, 2012 at 02:32:45PM +0300, Pekka Paalanen wrote:
> > Weston has a SIGSEGV handler that attempts to shut everything down
> > cleanly. If it actually succeeds in that, the process exit status will
> > indicate success, when the process just segfaulted.
> > 
> > Fix that by setting the return value to failure in the SEGV handler.
> 
> Should we just make this a local in main() and then set it to
> EXIT_FAILURE in the else case of the setjmp if?

D'oh, of course!

A new patch coming up.


Thanks,
pq


More information about the wayland-devel mailing list