socket: check return from exec_spawn

This commit is contained in:
Thomas Hindoe Paaboel Andersen 2014-06-18 20:34:52 +02:00
parent f7926298e9
commit cee288adf8
1 changed files with 2 additions and 0 deletions

View File

@ -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)