in reply to Re^2: timeout problem with alarm
in thread timeout problem with alarm

Hi,
this solution works only partly. It produces the expected alarm but the child process is still running 'til the network timeouts.
So I will probably try 'fork/kill -9' to get rid of the child process...
Is this a good idea?

BTW (example; 1 of approx. 40 hosts):

> uname -a SunOS db02 5.6 Generic_105181-17 sun4u sparc SUNW,Ultra-Enterprise > perl -v This is perl, v5.8.0 built for sun4-solaris

Replies are listed 'Best First'.
Re^4: timeout problem with alarm
by Limbic~Region (Chancellor) on Jul 13, 2005 at 12:42 UTC
    Anonymous Monk,
    I am a bit confused. Since kill -9 is "untrappable", it will surely get results though there may be undesireable side effects. I do not know what, if any, cleanup your process would need to do to cleanly exit but kill -9 is friendly. Did you attempt restoring the old signal behavior by setting the environment variable and it didn't work? Perhaps it is something that is beyond your control - more information about your specific situation would help us help you.

    Cheers - L~R