NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/35630: ftp may die with "Alarm clock" during file transfer



The following reply was made to PR bin/35630; it has been noted by GNATS.

From: dieter roelants <dieter.NetBSD%pandora.be@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/35630: ftp may die with "Alarm clock" during file transfer
Date: Sun, 20 Jan 2008 11:42:30 +0100

 > 229 Entering Extended Passive Mode (|||62875|)
 > 150 Opening BINARY mode data connection for 'screen-4.0.3.tgz' (525634 
 > bytes).
 >  72% |**************************           |   373 KB  123.92 KB/s    00:01 
 > ETAAlarm clock
 
 
 Maybe next diff will fix it?
 
 --- progressbar.c.orig 2008-01-20 11:36:06.000000000 +0100
 +++ progressbar.c      2008-01-20 11:36:57.000000000 +0100
 @@ -180,8 +180,8 @@
                            "transfer aborted because stalled for %lu sec.\r\n",
                            getprogname(), (unsigned long)wait.tv_sec);
                        (void)write(fileno(ttyout), buf, len);
 -                      (void)xsignal(SIGALRM, SIG_DFL);
                        alarmtimer(0);
 +                      (void)xsignal(SIGALRM, SIG_DFL);
                        siglongjmp(toplevel, 1);
                }
  #endif        /* !STANDALONE_PROGRESS */
 @@ -198,8 +198,8 @@
                        (void)xsignal_restart(SIGALRM, updateprogressmeter, 1);
                        alarmtimer(1);          /* set alarm timer for 1 Hz */
                } else if (flag == 1) {
 -                      (void)xsignal(SIGALRM, SIG_DFL);
                        alarmtimer(0);
 +                      (void)xsignal(SIGALRM, SIG_DFL);
                }
        }
  #ifndef NO_PROGRESS
 



Home | Main Index | Thread Index | Old Index