Re: [python-win32] Catching SIGBREAK with Python 3.3

2012-11-14 Thread Tim Golden
On 14/11/2012 16:47, Stefan Scherfke wrote: It seems like the sleep()-call cannot be interrupted. I added the changes you described to my code. Under XP, Py33 32bit, the child process takes 10s to terminate but doesn’t prints the last message. If I replace the sleep(10) call with a "for i in rang

Re: [python-win32] Catching SIGBREAK with Python 3.3

2012-11-14 Thread Stefan Scherfke
Am 14.11.2012 um 13:58 schrieb Tim Golden : > On 13/11/2012 20:54, Stefan Scherfke wrote: >> Hi Tim, >> >> Am 13.11.2012 um 21:44 schrieb Tim Golden : >> >>> On 12/11/2012 13:12, Stefan Scherfke wrote: Hi all, recently I’ve been playing around with sending and catching signals o

Re: [python-win32] Catching SIGBREAK with Python 3.3

2012-11-14 Thread Tim Golden
On 13/11/2012 20:54, Stefan Scherfke wrote: > Hi Tim, > > Am 13.11.2012 um 21:44 schrieb Tim Golden : > >> On 12/11/2012 13:12, Stefan Scherfke wrote: >>> Hi all, >>> >>> recently I’ve been playing around with sending and catching signals on >>> Windows. I finally found out how to send and catch

Re: [python-win32] Catching SIGBREAK with Python 3.3

2012-11-13 Thread Tim Golden
On 13/11/2012 20:54, Stefan Scherfke wrote: Hi Tim, Am 13.11.2012 um 21:44 schrieb Tim Golden : Possibly unhelpfully, I've just run your code on Python 2.7, 3.3 and 3.4, all of which gave the same output: parent waiting for child child terminating parent terminating This is on WinXP SP3. d

Re: [python-win32] Catching SIGBREAK with Python 3.3

2012-11-13 Thread Stefan Scherfke
Hi Tim, Am 13.11.2012 um 21:44 schrieb Tim Golden : > On 12/11/2012 13:12, Stefan Scherfke wrote: >> Hi all, >> >> recently I’ve been playing around with sending and catching signals on >> Windows. I finally found out how to send and catch a BREAK event. >> >> With Python 2.7(.2), I only need o

Re: [python-win32] Catching SIGBREAK with Python 3.3

2012-11-13 Thread Tim Golden
On 12/11/2012 13:12, Stefan Scherfke wrote: Hi all, recently I’ve been playing around with sending and catching signals on Windows. I finally found out how to send and catch a BREAK event. With Python 2.7(.2), I only need os.kill(pid, signal.CTRL_C_EVENT) and signal.signal(signal.SIGBREAK, hand

[python-win32] Catching SIGBREAK with Python 3.3

2012-11-12 Thread Stefan Scherfke
Hi all, recently I’ve been playing around with sending and catching signals on Windows. I finally found out how to send and catch a BREAK event. With Python 2.7(.2), I only need os.kill(pid, signal.CTRL_C_EVENT) and signal.signal(signal.SIGBREAK, handler). Alternatively, I can use GenerateConso