iKnowNothing has asked for the wisdom of the Perl Monks concerning the following question:
My cunumdrum was letting the application know that it was time to disconnect from the socket. I managed to do that using a signal handler to capture the ctrl-c keystroke. The signal handler would close the socket connection.
This works OK, but I would like to use a different keystroke to signal the closing of the socket connection. What other signals can be produced by user keystrokes?$SIG{INT} = \&UserInterrupt; sub UserInterrupt{close(INPUT_HANDLE);}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question about signals
by Tanktalus (Canon) on Jan 26, 2005 at 20:54 UTC | |
by iKnowNothing (Scribe) on Jan 26, 2005 at 21:45 UTC | |
|
Re: Question about signals
by ambrus (Abbot) on Jan 26, 2005 at 20:55 UTC | |
by Fletch (Bishop) on Jan 26, 2005 at 21:17 UTC | |
|
Re: Question about signals
by zentara (Cardinal) on Jan 27, 2005 at 16:00 UTC |