From 330b4cf2280ab3a2edf2f2c8f40c429e40ff0f11 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 29 Aug 2014 20:31:15 +0200 Subject: the children should not have an alarm set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-respawn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mds-respawn.c b/src/mds-respawn.c index 6072ad9..bcbb7fe 100644 --- a/src/mds-respawn.c +++ b/src/mds-respawn.c @@ -207,8 +207,9 @@ static void spawn_server(size_t index) return; } - /* In the child process (server): change execution image to the server.. */ + /* In the child process (server): remove the alarm and change execution image to the server.. */ + alarm(0); execvp(commands[index][0], commands[index]); xperror(commands[index][0]); _exit(1); -- cgit v1.2.3-70-g09d2