diff options
author | Robert Managan <ramanagan@att.net> | 2012-12-15 06:00:17 (GMT) |
---|---|---|
committer | Robert Managan <ramanagan@att.net> | 2012-12-15 06:00:17 (GMT) |
commit | a27fa15ddc3af3e1ee3dfe2488fa499ba906dfda (patch) | |
tree | 737dc474ead899b9157657453364730679816a47 /runtest.py | |
parent | 3cf978d7964fb474f8a6219f48008f07913aabec (diff) | |
parent | 1bf9aa83fc024950012dd76d110443fc2d30c92a (diff) | |
download | SCons-a27fa15ddc3af3e1ee3dfe2488fa499ba906dfda.zip SCons-a27fa15ddc3af3e1ee3dfe2488fa499ba906dfda.tar.gz SCons-a27fa15ddc3af3e1ee3dfe2488fa499ba906dfda.tar.bz2 |
merge in changes from SCons default
Diffstat (limited to 'runtest.py')
-rwxr-xr-x | runtest.py | 21 |
1 files changed, 5 insertions, 16 deletions
@@ -390,22 +390,11 @@ if use_subprocess: else: has_subprocess = False # Set up lowest-common-denominator spawning of a process on both Windows - # and non-Windows systems that works all the way back to Python 1.5.2. - try: - os.spawnv - except AttributeError: - def spawn_it(command_args): - pid = os.fork() - if pid == 0: - os.execv(command_args[0], command_args) - else: - pid, status = os.waitpid(pid, 0) - return (None, None, status >> 8) - else: - def spawn_it(command_args): - command = command_args[0] - command_args = [escape(c) for c in command_args] - return (None, None, os.spawnv(os.P_WAIT, command, command_args)) + # and non-Windows systems that works all the way back to Python 1.6 + def spawn_it(command_args): + command = command_args[0] + command_args = [escape(c) for c in command_args] + return (None, None, os.spawnv(os.P_WAIT, command, command_args)) class Base(object): def __init__(self, path, spe=None): |