killing thread after timeout

Jacek Popławski jpopl at interia.pl
Thu Sep 8 15:06:07 CEST 2005


Paul Rubin wrote:
> Maybe the child process can just use sigalarm instead of a separate
> thread, to implement the timeout.

Already tried that, signals works only in main thread.

> To get even more OS-specific, AF_UNIX sockets (at least on Linux) have
> a feature called ancillary messages that allow passing file
> descriptors between processes.  It's currently not supported by the
> Python socket lib, but one of these days... .  But I don't think
> Windows has anything like it.  No idea about QNX.

I have solved problem with additional process, just like Bryan Olson 
proposed. Looks like all features I wanted are working... :)



More information about the Python-list mailing list