From c3ca46e619744ccd6c597417cc8e373149608909 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 3 Aug 2017 12:33:40 +0100 Subject: ash: fixes to wait status Replace W* macros with versions from GNU C library. Change wait status values to match. --- shell/ash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index 18e53a0da..758187ccd 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -4378,14 +4378,14 @@ waitpid_child(int *status, int wait_flags) pid = pidlist[1]; free(pidlist); free(proclist); - *status = 260; /* terminated by a signal */ + *status = 128 + SIGINT; /* terminated by a signal */ return pid; } GetExitCodeProcess(proclist[idx], &win_status); pid = pidlist[idx]; free(pidlist); free(proclist); - *status = (int)win_status; + *status = (int)win_status << 8; return pid; } #define waitpid(p, s, f) waitpid_child(s, f) -- cgit v1.2.3-55-g6feb