Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
8 events
when toggle format what by license comment
Aug 11, 2011 at 5:49 comment added Yaroslav Bulatov Just added "try;catch" block, it's inside the code. BTW, in the long term, this turned out to give me problems because you can only set one SIGALARM handler, and other processes can reset it. One solution to this is given here -- stackoverflow.com/questions/6553423/…
Aug 10, 2011 at 15:38 comment added jpswain @Yaroslav Bulatov Thanks for the info. What was the workaround you added to deal with the issue mentioned?
Aug 3, 2011 at 7:18 comment added wim How can this be modified to run in a Threaded application? I am trying to use it from within worker threads and get ValueError: signal only works in main thread
Jul 11, 2011 at 0:04 history edited wim CC BY-SA 3.0
fixing SyntaxError: non-keyword arg after keyword arg
Jul 1, 2011 at 21:02 comment added Yaroslav Bulatov This sometimes results in exception when another handler registers itself on SIGALARM and kills the process before this one gets to "kill", added work-around. BTW, great recipe! I've used this to launch 50,000 buggy processes so far without freezing or crashing the handling wrapper.
Jul 1, 2011 at 20:53 history edited Yaroslav Bulatov CC BY-SA 3.0
added option "env" parameters for Popen
Jan 23, 2011 at 18:15 comment added Hamish Grubijan This will not work on windows, plus the order of functions is reversed.
Jul 24, 2010 at 19:29 history answered Gaslight Deceive Subvert CC BY-SA 2.5