ash: [SHELL] Move flushall to the point just before _exit
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 25 Oct 2016 18:49:53 +0000 (20:49 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 25 Oct 2016 18:49:53 +0000 (20:49 +0200)
commitcaee80cd3da65670a576e610044fdc5e7c957d6d
treeb325ee52a3cc807712502173f235e15ca2d54718
parent7aec86820d7bcf2842d167969c4fa7159ea643f7
ash: [SHELL] Move flushall to the point just before _exit

Upstream commit:

    We need to flush at the very end in case we've generated any errors
    before that.  The flushall call cannot perform a longjmp so it's
    safe there.

    Date: Sat, 22 Sep 2007 20:50:21 +0800
    [SHELL] Move flushall to the point just before _exit

    We need to flush at the very end in case we've generated any errors
    before that.  The flushall call cannot perform a longjmp so it's
    safe there.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c