A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-December/058792.html below:

[Python-Dev] Add timeout to subprocess.py?

[Python-Dev] Add timeout to subprocess.py? [Python-Dev] Add timeout to subprocess.py?Josiah Carlson jcarlson at uci.edu
Thu Dec 15 03:07:52 CET 2005
I've got a recipe in the Python cookbook which adds async subprocess
support[1], which can be wrapped to support handling IO to/from the
subprocess until a time limit occurs.

 - Josiah

[1] - http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440554


Guido van Rossum <guido at python.org> wrote:
> 
> A frequent requirement seems to be to run a subprocess but give up if
> it takes more than N seconds. I suppose you can hack this using the
> poll() method and time.sleep(), but perhaps a more direct approach can
> be added to the subprocess module? This should directly support
> reading output / stderr until the time limit is up as well. Any
> takers?
> 
> --
> --Guido van Rossum (home page: http://www.python.org/~guido/)
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/jcarlson%40uci.edu

More information about the Python-Dev 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