Skip to content

Commit cd9ea85

Browse files
committed
mitogen/parent: Bail out if STDIN or STDOUT is not available
Bail out if STDOUT or STDERR is not available as it is used for the communication with the parent process. Signed-off-by: Marc Hartmayer <[email protected]>
1 parent a176320 commit cd9ea85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mitogen/parent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,6 +1429,8 @@ def __repr__(self):
14291429
# "[1234 refs]" during exit.
14301430
@staticmethod
14311431
def _first_stage():
1432+
os.fstat(0)
1433+
os.fstat(1)
14321434
R,W=os.pipe()
14331435
r,w=os.pipe()
14341436
if os.fork():

0 commit comments

Comments
 (0)