mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
Merge pull request #2048 from poettering/fork-errno
core:execute: fix fork() fail handling in exec_spawn()
This commit is contained in:
commit
23ede49ee2
@ -2056,7 +2056,7 @@ int exec_spawn(Unit *unit,
|
||||
NULL);
|
||||
pid = fork();
|
||||
if (pid < 0)
|
||||
return log_unit_error_errno(unit, r, "Failed to fork: %m");
|
||||
return log_unit_error_errno(unit, errno, "Failed to fork: %m");
|
||||
|
||||
if (pid == 0) {
|
||||
int exit_status;
|
||||
|
Loading…
Reference in New Issue
Block a user