On Sat, Jan 10, 2004 at 12:40:03AM +0100, Cykl wrote:
> It seems that there is a bug with fish when lftp is passed in background
> mode. The is that lftp eats all CPU time.
Thanks for report! Easy to reproduce, easy to fix. Patch attached.
--
Alexander.
Index: ProcWait.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/ProcWait.cc,v
retrieving revision 1.15
diff -u -p -r1.15 ProcWait.cc
--- ProcWait.cc 17 Jul 2002 15:10:18 -0000 1.15
+++ ProcWait.cc 13 Jan 2004 14:17:26 -0000
@@ -49,8 +49,6 @@ int ProcWait::Do()
{
if(status!=RUNNING)
return MOVED;
- if(NonFatalError(errno))
- goto leave;
// waitpid failed, check the process existence
if(kill(pid,0)==-1)
{