diff options
author | Daniel Mack <github@zonque.org> | 2015-11-27 14:35:56 +0100 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-11-27 14:35:56 +0100 |
commit | 23ede49ee2f18583bef69d47327a9a759870c671 (patch) | |
tree | e033fef5921ff9559f394d53581416909ca854ce /src/core | |
parent | 59a99b20073bff0924af50be3fce70e9082dffe0 (diff) | |
parent | 74129a127676e4f0edac0db4296c103e76ec6694 (diff) |
Merge pull request #2048 from poettering/fork-errno
core:execute: fix fork() fail handling in exec_spawn()
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/execute.c b/src/core/execute.c index 677480cbe1..4f67a9de83 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -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; |