diff options
author | Roy Marples <roy@marples.name> | 2007-04-21 09:23:37 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-04-21 09:23:37 +0000 |
commit | 52c28add455949dfa052a79b67cea7ec2052268b (patch) | |
tree | 332324500c410ceeec0621be8efb047a64f1d84f /src/librc.c | |
parent | 81c595b3fe54767eb27db79406b4ffc4c99a7d77 (diff) |
error then unlink
Diffstat (limited to 'src/librc.c')
-rw-r--r-- | src/librc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/librc.c b/src/librc.c index e3e1a3e3..002ab6cd 100644 --- a/src/librc.c +++ b/src/librc.c @@ -468,11 +468,9 @@ static pid_t _exec_service (const char *service, const char *arg) } if ((pid = vfork ()) == 0) { - int e = 0; execl (file, file, arg, (char *) NULL); - e = errno; - unlink (fifo); eerror ("unable to exec `%s': %s", file, strerror (errno)); + unlink (fifo); _exit (EXIT_FAILURE); } |