From e94a964e7dd03d0dd6923d7fc62bc46bd4431189 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sat, 19 May 2018 02:39:56 +0800 Subject: eval: Add vfork support This patch adds basic vfork support for the case of a simple command. Signed-off-by: Herbert Xu --- src/error.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/error.c') diff --git a/src/error.c b/src/error.c index f9ea919..728ff88 100644 --- a/src/error.c +++ b/src/error.c @@ -43,6 +43,7 @@ #include #include +#include "jobs.h" #include "shell.h" #include "main.h" #include "options.h" @@ -81,6 +82,10 @@ exraise(int e) if (handler == NULL) abort(); #endif + + if (vforked) + _exit(exitstatus); + INTOFF; exception = e; -- cgit 1.4.1