[PATCH weston] compositor: fix return code from main()

Pekka Paalanen ppaalanen at gmail.com
Fri Mar 20 06:57:45 PDT 2015


On Fri, 20 Mar 2015 14:27:18 +0100
Emilio Pozuelo Monfort <pochu27 at gmail.com> wrote:

> On 20/03/15 13:40, Pekka Paalanen wrote:
> > From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
> >
> > There were a few cases of 'goto out' in main() that did not set ret to
> > EXIT_FAILURE. Shell failing to init is the one I hit when writing tests
> > for ivi-shell.
> >
> > Rather than adding a few more 'ret = EXIT_FAILURE', make that the
> > default and remove the redundant assignments. When Weston exits
> > properly ec->exit_code will take care of the exit code.
> >
> > Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
> > ---
> >   src/compositor.c | 17 ++++-------------
> >   1 file changed, 4 insertions(+), 13 deletions(-)
> >

> 
> Reviewed-by: Emilio Pozuelo Monfort <emilio.pozuelo at collabora.co.uk>
> 
> Cheers,
> Emilio

Pushed
   8fd4de4..111c6f9  master -> master


Thanks,
pq


More information about the wayland-devel mailing list