]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mworker: displays a message when a worker is forked
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 6 Nov 2018 16:37:15 +0000 (17:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 6 Nov 2018 17:30:50 +0000 (18:30 +0100)
Displays the PID and the relative PID when we fork a new worker.

src/haproxy.c

index 62b9d1a7841def08e30a8bcb3a1c1a6bbfa319f3..cfa740d61dbfd4986b4d44701b1a5bbcda8e3785 100644 (file)
@@ -2997,6 +2997,7 @@ int main(int argc, char **argv)
                        if (global.mode & MODE_MWORKER) {
                                struct mworker_proc *child;
 
+                               qfprintf(stdout, "New worker #%d (%d) forked\n", relative_pid, ret);
                                /* find the right mworker_proc */
                                list_for_each_entry(child, &proc_list, list) {
                                        if (child->relative_pid == relative_pid &&