Re: threading.Thread vs. signal.signal

2005-09-17 Thread Jp Calderone
On Sat, 17 Sep 2005 19:24:54 -0400, Jack Orenstein <[EMAIL PROTECTED]> wrote: >I'd like to create a program that invokes a function once a second, >and terminates when the user types ctrl-c. So I created a signal >handler, created a threading.Thread which does the invocation every >second, and star

threading.Thread vs. signal.signal

2005-09-17 Thread Jack Orenstein
I'd like to create a program that invokes a function once a second, and terminates when the user types ctrl-c. So I created a signal handler, created a threading.Thread which does the invocation every second, and started the thread. The signal handler seems to be ineffective. Any idea what I'm doin