tech-userlevel archive

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

Re: ftp -q 60 not working (well)



wiz%NetBSD.org@localhost (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: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index