Skip to content

Commit 878fd17

Browse files
committed
workaround return code reporting on windows with emulated posix module
1 parent 2cc1dc4 commit 878fd17

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graalpython/lib-python/3/subprocess.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2007,6 +2007,11 @@ def _handle_exitstatus(self, sts,
20072007
if _WIFSTOPPED(sts):
20082008
self.returncode = -_WSTOPSIG(sts)
20092009
else:
2010+
# Begin Truffle change
2011+
if sys.platform == 'win32':
2012+
self.returncode = sts
2013+
return
2014+
# End Truffle change
20102015
self.returncode = _waitstatus_to_exitcode(sts)
20112016

20122017
def _internal_poll(self, _deadstate=None, _waitpid=_waitpid,

0 commit comments

Comments
 (0)