error then unlink
This commit is contained in:
parent
81c595b3fe
commit
52c28add45
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user