mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-14 23:44:41 +00:00
[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:
parent
d95dcb51a8
commit
d680371064
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user