From b74d66ca6e9fe5ab557260e1d27299a8bd562640 Mon Sep 17 00:00:00 2001 From: salad Date: Mon, 9 Nov 2020 17:57:48 +0100 Subject: hellyeah brother, norm not checked because fuck lazare, new file and msh->sig --- src/e_externs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/e_externs.c') 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); } } -- cgit v1.2.3