summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwilly tarreau <willy@wtap.(none)>2005-12-17 13:28:43 +0100
committerwilly tarreau <willy@wtap.(none)>2005-12-17 13:28:43 +0100
commite867b4881f834c043ab766132211792738021a3c (patch)
tree9d20e33c2c6b739d91f1463b34ac8d4e31054b4e
parentcd87894af09f16a2f814255abb5ae313c3c73e04 (diff)
downloadhaproxy-e867b4881f834c043ab766132211792738021a3c.tar.gz
* released 1.1.15v1.1.15
* replaced setpgid()/setpgrp() with setsid() for better portability, because setpgrp() doesn't have the same meaning under Solaris, Linux, and OpenBSD.
-rw-r--r--haproxy.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/haproxy.c b/haproxy.c
index 2ec3e6d62..d51ea2d24 100644
--- a/haproxy.c
+++ b/haproxy.c
@@ -18,6 +18,9 @@
*
* ChangeLog :
*
+ * 2002/08/07 : 1.1.15
+ * - replaced setpgid()/setpgrp() with setsid() for better portability, because
+ * setpgrp() doesn't have the same meaning under Solaris, Linux, and OpenBSD.
* 2002/07/20 : 1.1.14
* - added "postonly" cookie mode
* 2002/07/15 : 1.1.13
@@ -173,8 +176,8 @@
#include <linux/netfilter_ipv4.h>
#endif
-#define HAPROXY_VERSION "1.1.14"
-#define HAPROXY_DATE "2002/07/20"
+#define HAPROXY_VERSION "1.1.15"
+#define HAPROXY_DATE "2002/08/07"
/* this is for libc5 for example */
#ifndef TCP_NODELAY
@@ -4852,8 +4855,7 @@ int main(int argc, char **argv) {
global.mode |= MODE_QUIET; /* ensure that we won't say anything from now */
}
pid = getpid(); /* update child's pid */
- setpgid(1, 0);
- setpgrp();
+ setsid();
}
select_loop();