in reply to Problem with script not terminating under Windows XP

If this is meant to be a long-running background script, perhaps you should implement it as a Windows service using Win32::Daemon. Once your app is registered with Windows as a Service, it will receive a ServiceStop() request during shutdown, which you then handle appropriately.

<-radiant.matrix->
Larry Wall is Yoda: there is no try{} (ok, except in Perl6; way to ruin a joke, Larry! ;P)
The Code that can be seen is not the true Code
"In any sufficiently large group of people, most are idiots" - Kaa's Law
  • Comment on Re: Problem with script not terminating under Windows XP

Replies are listed 'Best First'.
Re^2: Problem with script not terminating under Windows XP
by biochris (Beadle) on Sep 19, 2005 at 20:05 UTC
    Good point. Thanks :)