Children should not fork

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2016-01-18 12:42:05 +01:00
parent fec81cf40b
commit 564ae2bdd6

View File

@ -233,6 +233,7 @@ main(int argc, char* argv[])
girara_error("Could not start new process group: %s", strerror(errno)); girara_error("Could not start new process group: %s", strerror(errno));
return -1; return -1;
} }
break;
} else if (pid < 0) { /* error */ } else if (pid < 0) { /* error */
girara_error("Could not fork: %s", strerror(errno)); girara_error("Could not fork: %s", strerror(errno));
return -1; return -1;