Timeouts

Julian Field jkf at ecs.soton.ac.uk
Tue Oct 2 17:05:26 IST 2001


Try applying these 2 small changes to sweep.pl and tell me if it helps at all:
*** sweep.pl    Tue Oct  2 08:51:22 2001
--- sweep.pl.new        Tue Oct  2 17:08:28 2001
***************
*** 223,229 ****
       for ($i=0; $i<10; $i++) {
         sleep 1;
         ($pid=0),last if kill(0, $pid);
!       #kill 'TERM', $pid;
       }
       # And if it didn't respond to 15 nice kills, we kill -9 it
       kill 'KILL', $pid if $pid;
--- 223,229 ----
       for ($i=0; $i<10; $i++) {
         sleep 1;
         ($pid=0),last if kill(0, $pid);
!       kill 'TERM', $pid;
       }
       # And if it didn't respond to 15 nice kills, we kill -9 it
       kill 'KILL', $pid if $pid;
***************
*** 426,432 ****
       for ($i=0; $i<10; $i++) {
         sleep 1;
         ($pid=0),last if kill(0, $pid);
!       #kill 'TERM', $pid;
       }
       # And if it didn't respond to 15 nice kills, we kill -9 it
       kill 'KILL', $pid if $pid;
--- 426,432 ----
       for ($i=0; $i<10; $i++) {
         sleep 1;
         ($pid=0),last if kill(0, $pid);
!       kill 'TERM', $pid;
       }
       # And if it didn't respond to 15 nice kills, we kill -9 it
       kill 'KILL', $pid if $pid;

In other words, uncomment the 2 "kill" statements inside the little "for"
loops.
--
Julian Field                Teaching Systems Manager
jkf at ecs.soton.ac.uk         Dept. of Electronics & Computer Science
Tel. 023 8059 2817          University of Southampton
                             Southampton SO17 1BJ



More information about the MailScanner mailing list