ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/EV.pm
(Generate patch)

Comparing EV/EV.pm (file contents):
Revision 1.121 by root, Sun Jul 19 03:12:28 2009 UTC vs.
Revision 1.122 by root, Sun Jul 19 20:39:54 2009 UTC

698 698
699=item $w = EV::signal $signal, $callback 699=item $w = EV::signal $signal, $callback
700 700
701=item $w = EV::signal_ns $signal, $callback 701=item $w = EV::signal_ns $signal, $callback
702 702
703=item $w = $loop->signal ($signal, $callback)
704
705=item $w = $loop->signal_ns ($signal, $callback)
706
703Call the callback when $signal is received (the signal can be specified by 707Call the callback when $signal is received (the signal can be specified by
704number or by name, just as with C<kill> or C<%SIG>). 708number or by name, just as with C<kill> or C<%SIG>).
709
710Only one event loop can grab a given signal - attempting to grab the same
711signal from two EV loops will crash the program immediately or cause data
712corruption.
705 713
706EV will grab the signal for the process (the kernel only allows one 714EV will grab the signal for the process (the kernel only allows one
707component to receive a signal at a time) when you start a signal watcher, 715component to receive a signal at a time) when you start a signal watcher,
708and removes it again when you stop it. Perl does the same when you 716and removes it again when you stop it. Perl does the same when you
709add/remove callbacks to C<%SIG>, so watch out. 717add/remove callbacks to C<%SIG>, so watch out.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines