diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c index fcd3e7d..9f03717 100644 --- a/src/main.c +++ b/src/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) + savestatus = number(argv[1]); exraise(EXEXIT); /* NOTREACHED */ |