You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.2 KiB

  1. From 575e299cc07f5f2b314d91dfac8671834cbdd2a7 Mon Sep 17 00:00:00 2001
  2. From: Willy Tarreau <w@1wt.eu>
  3. Date: Wed, 24 Sep 2014 12:59:25 +0200
  4. Subject: [PATCH 15/20] BUG/MEDIUM: remove debugging code from systemd-wrapper
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Kristoffer Grönlund reported that after my recent update to the
  9. systemd-wrapper, I accidentely left the debugging code which
  10. consists in disabling the fork :-(
  11. The fix needs to be backported to 1.5 as well since I pushed it
  12. there as well.
  13. (cherry picked from commit a55bbc64d8272e4066a67b6d190ffebaff2b300a)
  14. ---
  15. src/haproxy-systemd-wrapper.c | 3 +--
  16. 1 file changed, 1 insertion(+), 2 deletions(-)
  17. diff --git a/src/haproxy-systemd-wrapper.c b/src/haproxy-systemd-wrapper.c
  18. index 446f28f..8602881 100644
  19. --- a/src/haproxy-systemd-wrapper.c
  20. +++ b/src/haproxy-systemd-wrapper.c
  21. @@ -70,8 +70,7 @@ static void spawn_haproxy(char **pid_strv, int nb_pid)
  22. main_argc = wrapper_argc - 1;
  23. main_argv = wrapper_argv + 1;
  24. - //pid = fork();
  25. - pid=0;
  26. + pid = fork();
  27. if (!pid) {
  28. /* 3 for "haproxy -Ds -sf" */
  29. char **argv = calloc(4 + main_argc + nb_pid + 1, sizeof(char *));
  30. --
  31. 2.0.4