]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mworker: use ha_notice to announce a new worker
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 21 Nov 2018 17:04:53 +0000 (18:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 21 Nov 2018 18:02:23 +0000 (19:02 +0100)
 Displays the PID and the relative PID when we fork a new worker with
 ha_notice().

src/haproxy.c

index 78356213b0d03d4e1e225274ddc194b7ad26e1ec..6a1397a87904d95c43581c4841162da333d0c8f6 100644 (file)
@@ -3003,7 +3003,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);
+                                       ha_notice("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 &&