w...@netbsd.org (Thomas Klausner) writes:

>I.e. there is a time limit of 60s but the job runs for two or three
>weeks without apparent progress. This looks like a bug in ftp(1), or?

  3986      1 ftp      CALL  read(5,0x7b3fb003,5)
  3986      1 ftp      RET   read RESTART
  3986      1 ftp      PSIG  SIGALRM caught handler=0x29f7c mask=(): 
code=SI_TIMER sent by pid=0, uid=0 with sigval 0x0)
  3986      1 ftp      CALL  __gettimeofday50(0x7fffc440,0)
  3986      1 ftp      RET   __gettimeofday50 0

The alarm signal handler is set with SA_RESTART for

        if (quit_time > 0 || progress) {

to enable a 1 Hz "timeout" that effectively disables the quit_time feature.

-- 
-- 
                                Michael van Elst
Internet: mlel...@serpens.de
                                "A potential Snark may lurk in every tree."

Reply via email to