mirror of
https://github.com/OpenRC/openrc.git
synced 2024-11-27 20:03:29 +08:00
Fix fork error message.
This commit is contained in:
parent
7b27a12f6c
commit
5014968e83
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user