curl-users
Re: cURL processes hanging when run via a system call
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 27 Feb 2006 10:38:35 -0800
Date: Mon, 27 Feb 2006 10:38:35 -0800
Actually, this is a better patch:
diff -u -r1.350 main.c
--- main.c 21 Feb 2006 15:25:22 -0000 1.350
+++ main.c 27 Feb 2006 18:35:34 -0000
@@ -4291,7 +4291,8 @@
fd[1] == STDIN_FILENO ||
fd[1] == STDOUT_FILENO ||
fd[1] == STDERR_FILENO )
- pipe(fd);
+ if (pipe(fd) < 0)
+ return;
close(fd[0]);
close(fd[1]);
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2006-02-27