View | Details | Raw Unified | Return to bug 115420
Collapse All | Expand All

(-)bounce/files/patch-02 Sat Aug 11 16:33:16 2007 (-3 / +27 lines)
Lines 1-6 Link Here
1
--- bounce.c.orig      Fri Jun  2 12:58:37 2006
1
--- bounce.c.orig      Sat Aug 11 15:46:54 2007
2
+++ bounce.c   Fri Jun  2 13:25:28 2006
2
+++ bounce.c   Sat Aug 11 15:59:20 2007
3
@@ -138,7 +138,7 @@
3
@@ -31,6 +31,7 @@
4
 #define    DEFAULT_PORT   1523
5
6
 char sbuf[16384], cbuf[16384];
7
+int t=0;
8
9
 void sigchld() {
10
   signal(SIGCHLD, sigchld);
11
@@ -46,12 +47,14 @@
12
13
     struct itimerval itime;
14
15
+    if (t) {
16
     itime.it_interval.tv_sec=0;
17
     itime.it_interval.tv_usec=0;
18
-    itime.it_value.tv_sec=21600;
19
+    itime.it_value.tv_sec=t;
20
     itime.it_value.tv_usec=0;
21
     setitimer(ITIMER_REAL,&itime,NULL);
22
     /* arbitrary connection time limit: 6 hours (in case the client hangs) */
23
+    }
24
25
     chead=ctail=cbuf;
26
     cpos=0;
27
@@ -138,7 +141,7 @@
4
 }
28
 }

Return to bug 115420