diff options
author | Gregory P. Smith <greg@krypto.org> | 2012-11-11 07:53:47 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2012-11-11 07:53:47 (GMT) |
commit | 8d07c264e4bcaaf1fe3b9fc92ea5730efe13eaa2 (patch) | |
tree | 6363b06ab210ef0961fd122be20572a2d5d3754b /Modules/_posixsubprocess.c | |
parent | 82fdadeba1ed00941aa2bdb0f8e7dff1c16eb2c3 (diff) | |
download | cpython-8d07c264e4bcaaf1fe3b9fc92ea5730efe13eaa2.zip cpython-8d07c264e4bcaaf1fe3b9fc92ea5730efe13eaa2.tar.gz cpython-8d07c264e4bcaaf1fe3b9fc92ea5730efe13eaa2.tar.bz2 |
Raise our own SubprocessError rather than a RuntimeError in when dealing with
odd rare errors coming from the subprocess module.
Diffstat (limited to 'Modules/_posixsubprocess.c')
-rw-r--r-- | Modules/_posixsubprocess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index b7b120b..4ccd38b 100644 --- a/Modules/_posixsubprocess.c +++ b/Modules/_posixsubprocess.c @@ -497,7 +497,7 @@ error: /* We can't call strerror(saved_errno). It is not async signal safe. * The parent process will look the error message up. */ } else { - unused = write(errpipe_write, "RuntimeError:0:", 15); + unused = write(errpipe_write, "SubprocessError:0:", 18); unused = write(errpipe_write, err_msg, strlen(err_msg)); } if (unused) return; /* silly? yes! avoids gcc compiler warning. */ |