Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

signals in win32?

by gants (Novice)
on Oct 27, 2009 at 09:57 UTC ( #803405=perlquestion: print w/replies, xml ) Need Help??
gants has asked for the wisdom of the Perl Monks concerning the following question:

hello, How I can put unix siganls like usr2 into my perl daemon ran at windows?

Update:

hm, its kind of unsupport configuration signals. But how I can do reconfiguration my daemon instead of restart on windows?

20091101 Janitored by Corion: Restored original content

Replies are listed 'Best First'.
Re: signals in win32?
by shmem (Chancellor) on Oct 27, 2009 at 11:28 UTC

    You can only accept and deliver signals which your OS supports. To get a list of them, use e.g.

    perl -le "print for sort keys %SIG"

    update: the OP was modified after my answer, which doesn't make any sense know. Originally the OP was asking about how to implement or use or deliver (I don't remember very well) the USR1 signal on Windows.

    Output from the above snippet on my box (linux)

    ALRM BUS CHLD CLD CONT FPE HUP ... more signals... UNUSED URG USR1 USR2 VTALRM WINCH XCPU XFSZ

    which is a list of the signals for that OS. I bet perl on windows features a different set of keys in %SIG.

      Originally the OP was asking about how to implement or use or deliver (I don't remember very well) the USR1 signal on Windows.

      ah! It was:
      hello, How I can put unix siganls like usr2 into my perl daemon ran at windows?

      I bet perl on windows features a different set of keys in %SIG.

      ABRT ALRM BREAK CHLD CLD CONT FPE HUP ILL INT KILL NUM05 NUM06 NUM07 NUM10 NUM12 NUM16 NUM17 NUM18 NUM19 NUM24 PIPE QUIT SEGV STOP TERM

      Considering the OS has only two signals (Ctrl-C and Ctrl-Break)...

      Aside from not doing what you said it does, I don't see how it helps the OP at all.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://803405]
Approved by jettero
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-12-15 22:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (443 votes). Check out past polls.

    Notices?