in reply to Perl Scripts Hang On exit() Being Called

Although it may not be related we had some issues with Perl scripts 'hanging' on exit where we had built really big hashes (GB size). They did *eventually* exit after about 10 minutes! but they were caught up with a malloc bug in an extended hash cleanup. Using POSIX::_exit fixed the issue for us, perhaps it will work for you. Easy to try anyway and it is supported on Win32....

use POSIX qw[ _exit ]; ... # avoid perl exit which hangs in some circumstances POSIX::_exit(0);

cheers

tachyon

Replies are listed 'Best First'.
Re: Re: Perl Scripts Hang On exit() Being Called
by lamberms (Sexton) on Mar 07, 2004 at 17:01 UTC
    tachyon,
    That does not seem to work. This problem always happens on certain machines every time. It is really weird. One machine is a P4 running XP Pro and the other is a Dual Xeon which has had Win2k installed and XP Pro installed (did not make a difference).
    Best Regards,
    Mike