aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-02-02 22:17:44 +0000
committerRoy Marples <roy@marples.name>2008-02-02 22:17:44 +0000
commit5014968e83adc2449aadda04b8f80a6a6dc78c0b (patch)
tree152037a6014629fddcdd2cbb9127237162904824 /src
parent7b27a12f6c4d6056f6f3da0a5a2aa7f5508a6f46 (diff)
Fix fork error message.
Diffstat (limited to 'src')
-rw-r--r--src/librc/librc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c
index 01863407..1fdb8db0 100644
--- a/src/librc/librc.c
+++ b/src/librc/librc.c
@@ -627,14 +627,14 @@ static pid_t _exec_service (const char *service, const char *arg)
_exit (EXIT_FAILURE);
}
+ if (pid == -1)
+ fprintf (stderr, "fork: %s\n", strerror (errno));
+
sigprocmask (SIG_SETMASK, &old, NULL);
free (fifo);
free (file);
- if (pid == -1)
- fprintf (stderr, "vfork: %s\n", strerror (errno));
-
return (pid);
}