msys2 / msys2-autobuild

🏭🏭🏭🏭🏭🏭🏭🏭
https://packages.msys2.org/queue
MIT License
35 stars 25 forks source link

flush stdout on a few prints that show up at odd times #41

Closed jeremyd2019 closed 2 years ago

jeremyd2019 commented 2 years ago

Fixes #40.

lazka commented 2 years ago

I'm wondering if we shouldn't just use unbuffered stdout instead (export PYTHONUNBUFFERED=1)

jeremyd2019 commented 2 years ago

Yeah. Woulda been nice if python flushed automatically when launching subprocesses too (IIRC perl does this)

Perl will attempt to flush all files opened for output before any operation that may do a fork, but this may not be supported on some platforms (see perlport).