socket: check return from exec_spawn

This commit is contained in:
Thomas Hindoe Paaboel Andersen
2014-06-18 23:21:00 +02:00
parent f7926298e9
commit cee288adf8
+2
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)