aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-29 20:31:15 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-29 20:31:15 +0200
commit330b4cf2280ab3a2edf2f2c8f40c429e40ff0f11 (patch)
tree228612ccf1c6ce2df075cba1c63713dc5cb4275b
parentm + info: mds-base (diff)
downloadmds-330b4cf2280ab3a2edf2f2c8f40c429e40ff0f11.tar.gz
mds-330b4cf2280ab3a2edf2f2c8f40c429e40ff0f11.tar.bz2
mds-330b4cf2280ab3a2edf2f2c8f40c429e40ff0f11.tar.xz
the children should not have an alarm set
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/mds-respawn.c3
1 files changed, 2 insertions, 1 deletions
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);