summaryrefslogtreecommitdiff
path: root/src/core/execute.c
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-11-27 14:35:56 +0100
committerDaniel Mack <github@zonque.org>2015-11-27 14:35:56 +0100
commit23ede49ee2f18583bef69d47327a9a759870c671 (patch)
treee033fef5921ff9559f394d53581416909ca854ce /src/core/execute.c
parent59a99b20073bff0924af50be3fce70e9082dffe0 (diff)
parent74129a127676e4f0edac0db4296c103e76ec6694 (diff)
Merge pull request #2048 from poettering/fork-errno
core:execute: fix fork() fail handling in exec_spawn()
Diffstat (limited to 'src/core/execute.c')
-rw-r--r--src/core/execute.c2
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;