This patch fixes a crash that occurs when the master has a debuglevel of
0 and a client has a debuglevel > 0.  

Thanks Ron for the fix.

Signed-off-by: Hugh Greenberg <[EMAIL PROTECTED]>


On Thu, 2008-11-06 at 12:22 -0800, ron minnich wrote:
> if you ever do this:                 close(0);
>                 close(1);
>                 close(2);
> 
> it's a good idea to do this:
> fclose(stdin); fclose(stdout); fclose(stderr);
> 
> ah well
> 
> ron
Index: xget.c
===================================================================
--- xget.c	(revision 724)
+++ xget.c	(working copy)
@@ -1823,6 +1823,9 @@
 		close(0);
 		close(1);
 		close(2);
+		fclose(stdin);
+		fclose(stdout);
+		fclose(stderr);
 
 		pid = fork();
 		if (pid < 0) {

Reply via email to