http://qs1969.pair.com?node_id=803405

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.