From 52c28add455949dfa052a79b67cea7ec2052268b Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sat, 21 Apr 2007 09:23:37 +0000 Subject: error then unlink --- src/librc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/librc.c') 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); } -- cgit v1.2.3