mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 09:39:03 -04:00
When we don't have a pidfd available on which to poll(2) (this is true of Linux pre-5.3, and FreeBSD), we can't rely on a child death breaking our poll loop. Instead, in this case launch a second thread, which just sits on a blocking waitpid(2). If it gets an exit, it calls the completion callback, triggering the teardown. Closes #728, and ought lets us run the test suite on FreeBSD.