compositor: Return a user-defined exit code
authorFrederic Plourde <frederic.plourde@collabora.co.uk>
Wed, 29 Oct 2014 18:44:33 +0000 (14:44 -0400)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 18 Nov 2014 13:55:42 +0000 (15:55 +0200)
commitc336f06e70e08686e8300bd16ebbb00c68e2b0a8
tree8a62d86b7c91c261db56f5934722e10abdb0d25d
parentad7305ad74226c154243f33b59fd441ed2743a2a
compositor: Return a user-defined exit code

Currently, once we've reached our main's wl_display_run(), we always
return ret=EXIT_SUCCESS when weston terminates through wl_display_terminate.

This patch makes it possible to specify another return value by setting
prior to terminating Weston. This is useful for automated tests that want
to report test failures to the overlying testing infrastructure.

Signed-off-by: Frederic Plourde <frederic.plourde@collabora.co.uk>
[Pekka: fixed some tabs.]
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/compositor.c
src/compositor.h