Re: using filedescriptors in SIGINT signal handler

2005-09-13 Thread Bram Stolk
[EMAIL PROTECTED] wrote: > If you're talking about a Python function registered as a handler by > signal.signal, then there should not be any restrictions on what you do > in that function. > > Here's a small program I wrote: > #-

Re: using filedescriptors in SIGINT signal handler

2005-09-13 Thread jepler
If you're talking about a Python function registered as a handler by signal.signal, then there should not be any restrictions on what you do in that function. Here's a small program I wrote: # import os, signal, time def h(*a

using filedescriptors in SIGINT signal handler

2005-09-13 Thread Bram Stolk
Hello, I catch SIGINT signals with a handler. In the handler, I use fd's to write some data to a child process. Is this valid? Because the data never arrives, and I wonder what I'm doing wrong. Can filedescriptors still be used when you're in the signal handling of SIGINT? Thanks, Bram --