summaryrefslogblamecommitdiff
path: root/net-im/gaim-bangexec/files/patch-bangexec.c
blob: cdfc1dbe524ed53ddf298cab841a2357c7329c6d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                                                                        
--- bangexec.c.orig	Tue Apr 19 01:29:32 2005
+++ bangexec.c	Tue Apr 19 01:29:44 2005
@@ -253,9 +253,10 @@
 		return -1;
     }else if (pid){		//Parent
 		int rv;
+		int flags;
 
 		close (p[1]);
-		int flags = fcntl (p[0], F_GETFL, 0);
+		flags = fcntl (p[0], F_GETFL, 0);
 		fcntl (p[0], F_SETFL, flags | O_NONBLOCK);
 		
 		rv=read_nonblock(p[0],strtoul(BANGEXEC_MAXLEN,NULL,10)-chrs,strtoul(BANGEXEC_TIMEOUT,NULL,10),inp);