head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.54 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.52 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.50 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.48 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.46 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.44 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.42 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.40 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.38 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.36 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.34 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.32 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.30 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.28 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.26 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.24 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.22 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.20 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.18 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.16 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.14 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.12 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.10 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.8 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.6 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.4 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.2 buildlink2-base:1.2 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.2 date 2001.09.13.15.09.39; author rh; state dead; branches; next 1.1; 1.1 date 2001.08.21.12.00.14; author rh; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.08.21.12.00.14; author rh; state Exp; branches; next ; desc @@ 1.2 log @Update pen to 0.4.0. Notable changes include: 010912 When storing part of the buffer for a renewed attempt, store the *end*, not the beginning. Affects copy_up and copy_down. Autoconf. Use daemon() if available. Make sure that we don't try to close uninitialized file handles in add_client. New option -n to not make sockets nonblocking (mainly useful for debugging). 010911 Make sure that remaining data is stored away when we get EAGAIN in copy_up. Released 0.3.3. 010909 Added -p argument to store process id in a file (Andreas Wrede). Made the sockets nonblocking. Handle EAGAIN in copy_up/down. Released 0.3.2. 010908 Ignore SIGPIPE. Released 0.3.1. 010827 Option -h uses a hash on the client IP address for the initial server selection. Option -s ("stubborn") prevents failover to another server if the initial choice is unavailable. 010824 Use getport for the local port as well. @ text @$NetBSD: patch-ab,v 1.1 2001/08/21 12:00:14 rh Exp $ --- pen.c.orig Mon Aug 20 21:02:54 2001 +++ pen.c @@@@ -33,6 +33,7 @@@@ #include #include #include +#include #include #include #include @@@@ -465,6 +466,7 @@@@ exit(0); } +#if !(defined(BSD) && BSD >= 199306) static void background(void) { int childpid; @@@@ -478,6 +480,7 @@@@ setpgrp(); signal(SIGCHLD, SIG_IGN); } +#endif static void init(int argc, char **argv) { @@@@ -817,7 +820,11 @@@@ signal(SIGCHLD, SIG_IGN); if (!foreground) { +#if (defined(BSD) && BSD >= 199306) + daemon(0, 0); +#else background(); +#endif } listenfd = open_listener(argv[0]); @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @Initial import of pen-0.2.0, a simple TCP load balancer and failover manager. @ text @@