Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: The implementation of SIGHUP in Win32 Perl

by BrowserUk (Pope)
on Aug 30, 2013 at 20:25 UTC ( #1051671=note: print w/replies, xml ) Need Help??

in reply to The implementation of SIGHUP in Win32 Perl

(Windows 7 terminates such processes after approximately 10 seconds). My understanding is that the OS terminates these processes upon the return from the handler,

Can you offer some evidence for either of these assertions?

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: The implementation of SIGHUP in Win32 Perl

Replies are listed 'Best First'.
Re^2: The implementation of SIGHUP in Win32 Perl
by klaten (Novice) on Aug 31, 2013 at 17:35 UTC

    This is becoming very interesting. This MSDN topic describes what I believe is the current behavior of the console control handlers. In this article, regarding the event handler returning "True" as it does in win32.c it says, "no other handler functions are called and the system terminates the process." I could find no definitive documentation of the "10 second" process timeout I described. However, this discussion on StackOverflow leads me to believe it is real.

    This behavior has changed over the years. This article provides a good description of how things worked at one point. Notice that there is no mention of threads at all. It seems that a change to the behavior of control handlers occurred beginning with Windows Vista (with Windows 7 apparently adding the previously mentioned 10 second timeout).

Re^2: The implementation of SIGHUP in Win32 Perl
by klaten (Novice) on Aug 30, 2013 at 20:39 UTC

    BrowserUk, yes, there are some conversations over on StackOverflow and some MSDN notes, but I'll have to look up the links and post them later, sorry.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1051671]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2018-04-24 23:54 GMT
Find Nodes?
    Voting Booth?