mitogen/parent: Bail out if STDIN or STDOUT is closed
Bail out if STDIN or STDOUT is closed or unavailable, as these streams are required for the communication with the parent process. Without this check, the later `os.pipe()` calls in the first_stage may return file descriptors 0 and 1, leading to a confusing and hard-to-diagnose situation. -SSH command size: 838 +SSH command size: 850 -mitogen.parent 99240 96.9KiB 51244 50.0KiB 51.6% 12956 12.7KiB 13.1% +mitogen.parent 99496 97.2KiB 51275 50.1KiB 51.5% 12964 12.7KiB 13.0% Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>pull/1395/head
parent
e0cc3e8cbd
commit
b68dfbe602
Loading…
Reference in New Issue