diff options
author | Roy Marples <roy@marples.name> | 2008-02-02 00:17:35 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-02-02 00:17:35 +0000 |
commit | ad045176238549c3267fff3e8c0014dd5e9ffbdf (patch) | |
tree | 8332746190f8e9fc47007090a3beac0a64d133c6 /src/rc/runscript.c | |
parent | fef5d0af591c6c8a91f69bba5e62c99df1a732c9 (diff) |
Block signals to avoid fork /signal races.
Diffstat (limited to 'src/rc/runscript.c')
-rw-r--r-- | src/rc/runscript.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c index dfabb86b..83f20868 100644 --- a/src/rc/runscript.c +++ b/src/rc/runscript.c @@ -432,8 +432,6 @@ static bool svc_exec (const char *arg1, const char *arg2) eerrorx ("%s: vfork: %s", service, strerror (errno)); if (service_pid == 0) { if (slave_tty >= 0) { - /* Hmmm, this shouldn't work in a vfork, but it does which is - * good for us */ close (master_tty); dup2 (slave_tty, 1); |