A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/322338.html below:

killing thread after timeout

killing thread after timeoutJacek Popławski jpopl at interia.pl
Thu Sep 8 07:26:29 EDT 2005
Bryan Olson wrote:
> First, a portable worker-process timeout: In the child process,
> create a worker daemon thread, and let the main thread wait
> until either the worker signals that it is done, or the timeout
> duration expires. 

It works on QNX, thanks a lot, your reply was very helpful!

> If we need to run on Windows (and Unix), we can have one main
> process handle the socket connections, and pipe the data to and
> from worker processes. See the popen2 module in the Python
> Standard Library.

popen will not work in thread on QNX/Windows, same problem with spawnl
currently I am using:

os.system(command+">file 2>file2")

it works, I just need to finish implementing everything and check how it 
may fail...

One more time - thanks for great idea!


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4