Re: Threads and signals

2006-11-16 Thread Chad J. Schroeder
By writing a little C module I fixed the problem. By simply calling the function in the child thrd's run method, things work as expected. This is all the function (blockall) does: sigset_t omask, nmask; sigfillset(&nmask); sigprocmask(SIG_SETMASK, &nmask, NULL); bash-2.05b# python

Threads and signals

2006-11-15 Thread Chad J. Schroeder
I've run into an "opportunity" in a Python application using threads and signals. Basically, there is a main process that spawns off a child thread that loops forever. In between iterations, the child thread sleeps for X seconds. All the while, the main thread loops forever doing its thing and