search for: 9f037173

Displaying 2 results from an estimated 2 matches for "9f037173".

Did you mean: 0.037173
2020 Mar 28
0
[klibc:update-dash] dash: main: Only set savestatus in exitcmd
...need to set savestatus. Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/main.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/usr/dash/main.c b/usr/dash/main.c index fcd3e7d2..9f037173 100644 --- a/usr/dash/main.c +++ b/usr/dash/main.c @@ -339,13 +339,8 @@ exitcmd(int argc, char **argv) if (stoppedjobs()) return 0; - if (argc > 1) { - int status = number(argv[1]); - - exitstatus = status; - if (savestatus >= 0) - savestatus = status; - } + if (argc > 1) + sa...
2020 Mar 28
0
[klibc:update-dash] dash: mkinit: Split reset into exitreset and reset
...ree(); } diff --git a/usr/dash/init.h b/usr/dash/init.h index e026e868..49791a07 100644 --- a/usr/dash/init.h +++ b/usr/dash/init.h @@ -35,5 +35,5 @@ */ void init(void); +void exitreset(void); void reset(void); -void initshellproc(void); diff --git a/usr/dash/main.c b/usr/dash/main.c index 9f037173..8b351189 100644 --- a/usr/dash/main.c +++ b/usr/dash/main.c @@ -106,7 +106,7 @@ main(int argc, char **argv) int e; int s; - reset(); + exitreset(); e = exception; @@ -114,6 +114,8 @@ main(int argc, char **argv) if (e == EXEXIT || s == 0 || iflag == 0 || shlvl) exitshell();...