summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authortgoodwin <tgoodwin>1998-07-07 15:08:45 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:05 +0100
commit75c6b4aaf091e76e31f69a14b29c1dfadd6c06f2 (patch)
tree3579c5884b0f969081e3ea2eab9a221060175646 /exec.c
parentae927ace641cfb8f5ab95c56b77fe6746e2ed4bf (diff)
use POSIX wait() macros
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index 61160a5..7bf565b 100644
--- a/exec.c
+++ b/exec.c
@@ -118,7 +118,7 @@ extern void exec(List *s, bool parent) {
prompt, even though there's a SIGINT in its signal
vector.
*/
- if ((stat & 0xff) == 0)
+ if (WIFEXITED(stat))
nl_on_intr = FALSE;
sigchk();
nl_on_intr = TRUE;