mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Raise our own SubprocessError rather than a RuntimeError in when dealing with
odd rare errors coming from the subprocess module.
This commit is contained in:
parent
82fdadeba1
commit
8d07c264e4
4 changed files with 13 additions and 10 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue