Thank you very much, Daniel! --Sam
Daniel Staal wrote: > --As off Tuesday, February 3, 2004 10:09 AM -0700, Sam Masiello is > alleged to have said: > >> I have a script where I am sending some data over a socket, but after >> X seconds I want the operation to time out. I am currently using >> alarm to enforce the timeout, but I don't want the script to die. I >> want a way to be able to gracefully move onto a different part of the >> script or return some value. > > --As for the rest, it is mine. > > What you need to do is catch the signal: perldoc perlipc > > Daniel T. Staal > > --------------------------------------------------------------- > This email copyright the author. Unless otherwise noted, you are > expressly allowed to retransmit, quote, or otherwise use the contents > for non-commercial purposes. This copyright will expire 5 years > after the author's death, or in 30 years, whichever is longer, unless > such a period is in excess of local copyright law. > --------------------------------------------------------------- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>