Displays the PID and the relative PID when we fork a new worker.
---
 src/haproxy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/haproxy.c b/src/haproxy.c
index 88cdc9df3..d092a9bc3 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -2995,6 +2995,7 @@ int main(int argc, char **argv)
                        if (global.mode & MODE_MWORKER) {
                                struct mworker_proc *child;
 
+                               ha_warning("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 
&&
-- 
2.16.4


Reply via email to