summaryrefslogtreecommitdiffstats
path: root/src/e_externs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/e_externs.c')
-rw-r--r--src/e_externs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/e_externs.c b/src/e_externs.c
index 6e1e75a..b184728 100644
--- a/src/e_externs.c
+++ b/src/e_externs.c
@@ -113,7 +113,7 @@ static void e_exec_path(const char fullpath[],
{
while (wait(&status) != pid)
;
- msh->ret = WEXITSTATUS(status);
+ msh->ret = (msh->sig != 0) ? msh->sig : WEXITSTATUS(status);
}
}