by aumerle · 1y ago · 0 comments
Opting for a harder algorithm just to avoid a few lines of compatibility shims seems like very much the wrong tradeoff.
edit: Oh, it uses `signal.set_wakeup_fd`, interesting.
https://docs.python.org/3/library/signal.html#signal.set_wak...
edit2: it looks like the fd comes from a self-socket, but yeah, it's the same approach. The function is even called `_make_self_pipe`.
https://github.com/python/cpython/blob/bf21e2160d1dc6869fb23...
Very likely gmake works on non-posix platforms. Whether there is a requirement that the jobserver also works there I don't know.
It also needs to work on non-linux platforms. So a portable solution (or multiple non-portable ones) is needed.