diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/socket.c b/src/core/socket.c index 94eb2e7a5d..c58a7f03ee 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -1343,6 +1343,8 @@ static int socket_spawn(Socket *s, ExecCommand *c, pid_t *_pid) { NULL, s->exec_runtime, &pid); + if (r < 0) + goto fail; r = unit_watch_pid(UNIT(s), pid); if (r < 0) |