mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-24 20:23:11 +03:00
b495fe83f0
This fixes problem of creation the garbage of zombie processes on POSIX systems. This also makes behaviour of `popen2` identical in Windows, namely, all resources are freed only when waiting, giving at the same time an ability to observe the exit code afterwards.
34 lines
758 B
Plaintext
34 lines
758 B
Plaintext
main thread: before all
|
|
True
|
|
main thread: before closing subinput
|
|
main thread: before reading suboutput
|
|
main thread: before printing suboutput
|
|
Hello, Idris!
|
|
|
|
main thread: before waiting subprocess
|
|
subprocess exit code: 0
|
|
main thread: after all
|
|
------
|
|
main thread: before all
|
|
True
|
|
main thread: before closing subinput
|
|
main thread: before reading suboutput
|
|
main thread: before printing suboutput
|
|
Hello, Idris!
|
|
|
|
main thread: before waiting subprocess
|
|
subprocess exit code: 4
|
|
main thread: after all
|
|
------
|
|
main thread: before all
|
|
True
|
|
main thread: before closing subinput
|
|
main thread: before reading suboutput
|
|
main thread: before printing suboutput
|
|
Hello, Idris!
|
|
|
|
Two spaces
|
|
main thread: before waiting subprocess
|
|
subprocess exit code: 4
|
|
main thread: after all
|