Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Handling I/O Signals

by count0 (Friar)
on Mar 13, 2002 at 21:45 UTC ( #151531=note: print w/ replies, xml ) Need Help??


in reply to Handling I/O Signals

How can properly catch SIGIOs?

For the most part, the answer is: You can't - at least not reliably, portably, or effectively.

Firstly, SIGIO is highly system specific. IIRC it is SVR and/or BSD - but definitely *not* POSIX.
Secondly, SIGIOs are only sent for certain types of descriptors.. and to be honest, I'm not sure which ones (most probably terminals).

Generally, it is far more preferred to use IO multiplexing. If you haven't already, check out IO::Select, select, and the examples in the Cookbook.


Comment on Re: Handling I/O Signals

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://151531]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2014-12-29 07:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (185 votes), past polls