Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^7: Strawberry Perl and alarm() on Windows

by afoken (Chancellor)
on May 24, 2015 at 19:16 UTC ( [id://1127605]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    use strict;
    ...
            say "helper ends";
            exit(0);
    }
    
  2. or download this
    >env - perl interrupted.pl
    Sun May 24 20:24:11 2015 pid=31389: main starts
    Sun May 24 20:24:11 2015 pid=31389: main waiting for helper to lock
    ...
    
    alex@enterprise pts/0 20:24:49
    /home/alex/tmp/lockdemo>
    
  3. or download this
    >env - PERL_SIGNALS=unsafe strace -o trace.txt /usr/bin/perl interrupt
    +ed.pl
    Sun May 24 20:39:02 2015 pid=31774: helper starts
    ...
    write(2, "SIGALRM in main at interrupted.p"..., 43) = 43
    
    >
    
  4. or download this
    >env - PERL_SIGNALS=unsafe strace -o trace.txt /usr/bin/perl interrupt
    +ed.pl
    Sun May 24 20:51:14 2015 pid=32083: helper starts
    Sun May 24 20:51:14 2015 pid=32082: main starts
    ...
    rt_sigaction(SIGSTOP, NULL, {SIG_DFL, [], 0}, 8) = 0
    
    >
    
  5. or download this
    #ifdef SA_RESTART
        if (PL_signals & PERL_SIGNALS_UNSAFE_FLAG)
            act.sa_flags |= SA_RESTART; /* SVR4, 4.3+BSD */
    #endif
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found