Skip to content

Instantly share code, notes, and snippets.

@iorionda
Created December 15, 2011 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iorionda/1480517 to your computer and use it in GitHub Desktop.
Save iorionda/1480517 to your computer and use it in GitHub Desktop.
diff -ruN subprocess.py subprocess.py.new > subprocess.py.patch
--- subprocess.py 2011-12-15 18:32:27.000000000 +0900
+++ subprocess.py.new 2011-12-15 18:33:05.000000000 +0900
@@ -32,7 +32,7 @@
setattr(self, attr, wrapped_pipe)
__init__.__doc__ = subprocess_orig.Popen.__init__.__doc__
- def wait(self, check_interval=0.01):
+ def wait(self, check_interval=0.01, timeout=None):
# Instead of a blocking OS call, this version of wait() uses logic
# borrowed from the eventlet 0.2 processes.Process.wait() method.
try:
@iorionda
Copy link
Author

subprocess.pyのあるディレクトリに移動してから
patch < subprocess.py.patch
を実行する。

quiltってのも便利だよ。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment