mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-17 02:56:51 +00:00
MINOR: mworker: do not store child pid anymore in the pidfile
The parent process supervises itself the children, we don't need to store the children pids anymore in the pidfile in master-worker mode.
This commit is contained in:
parent
deed780a22
commit
92159b2901
@ -2649,7 +2649,7 @@ int main(int argc, char **argv)
|
||||
else if (ret == 0) /* child breaks here */
|
||||
break;
|
||||
children[proc] = ret;
|
||||
if (pidfd >= 0) {
|
||||
if (pidfd >= 0 && !(global.mode & MODE_MWORKER)) {
|
||||
char pidstr[100];
|
||||
snprintf(pidstr, sizeof(pidstr), "%d\n", ret);
|
||||
shut_your_big_mouth_gcc(write(pidfd, pidstr, strlen(pidstr)));
|
||||
|
Loading…
Reference in New Issue
Block a user