From 9c94dffdc595729e4c1f1cc7675c47974fc9eee0 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 8 Dec 2016 15:20:01 +0100 Subject: executor: handle exit failures See the added comment for explanation. --- executor/executor.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'executor/executor.cc') diff --git a/executor/executor.cc b/executor/executor.cc index 677d2919f..4e957c80e 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -229,7 +228,7 @@ void loop() close(kOutPipeFd); execute_one(); debug("worker exiting\n"); - exit(0); + doexit(0); } debug("spawned worker pid %d\n", pid); -- cgit mrf-deployment