Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Signals in Strawberry Perl: Name or number?

by Anonymous Monk
on Sep 12, 2009 at 19:25 UTC ( #794939=note: print w/ replies, xml ) Need Help??


in reply to Signals in Strawberry Perl: Name or number?

See POSIX

use POSIX 'SIGALRM'; die SIGALRM ;


Comment on Re: Signals in Strawberry Perl: Name or number?
Download Code
Replies are listed 'Best First'.
Re^2: Signals in Strawberry Perl: Name or number?
by bv (Friar) on Sep 12, 2009 at 20:53 UTC

    Unfortunately, that gives me an error:

    > perl -e "use POSIX 'SIGALRM'; die SIGALRM;' Your vendor has not defined POSIX macro SIGALRM, used at -e line 1

    On another note, though, I'm curious about that. Does die SIGALRM actually raise a SIGALRM to the calling process, similar to POSIX::raise? If so, is it a POSIX thing, or can I use die SIGSTOP and so forth without useing POSIX?

    print pack("A25",pack("V*",map{1919242272+$_}(34481450,-49737472,6228,0,-285028276,6979,-1380265972)))

      Does die SIGALRM actually raise a SIGALRM to the calling process

      No. die is a terse way of printing. It never sends a signal.

      I'm guessing SIGALRM is a constant whose value is the signal number associated with SIGALRM.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2015-08-01 01:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls