[BUG] remove condition for exit() under fork() failure

This must come from a copy-paste typo: in the unlikely event that
fork() would fail, the parent process would only exit(1) if there
were old pids. That's non-sense.
This commit is contained in:
Willy Tarreau 2007-10-16 07:44:56 +02:00
parent d95dcb51a8
commit d680371064

View File

@ -976,8 +976,7 @@ int main(int argc, char **argv)
ret = fork();
if (ret < 0) {
Alert("[%s.main()] Cannot fork.\n", argv[0]);
if (nb_oldpids)
exit(1); /* there has been an error */
exit(1); /* there has been an error */
}
else if (ret == 0) /* child breaks here */
break;