diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-29 20:31:15 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-29 20:31:15 +0200 |
commit | 330b4cf2280ab3a2edf2f2c8f40c429e40ff0f11 (patch) | |
tree | 228612ccf1c6ce2df075cba1c63713dc5cb4275b | |
parent | m + info: mds-base (diff) | |
download | mds-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.c | 3 |
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); |