Show More
@@ -63,11 +63,12 b' def process_handler(cmd, callback, stderr=subprocess.PIPE):' | |||||
63 | """ |
|
63 | """ | |
64 | sys.stdout.flush() |
|
64 | sys.stdout.flush() | |
65 | sys.stderr.flush() |
|
65 | sys.stderr.flush() | |
|
66 | close_fds = False if sys.platform=='win32' else True | |||
66 | p = subprocess.Popen(cmd, shell=True, |
|
67 | p = subprocess.Popen(cmd, shell=True, | |
67 | stdin=subprocess.PIPE, |
|
68 | stdin=subprocess.PIPE, | |
68 | stdout=subprocess.PIPE, |
|
69 | stdout=subprocess.PIPE, | |
69 | stderr=stderr, |
|
70 | stderr=stderr, | |
70 |
close_fds= |
|
71 | close_fds=close_fds) | |
71 |
|
72 | |||
72 | try: |
|
73 | try: | |
73 | out = callback(p) |
|
74 | out = callback(p) |
General Comments 0
You need to be logged in to leave comments.
Login now