Skip to content

executor: Only poll sys.stdin for readability when it's a tty.

Otherwise, we get a loop doing

select(5, [0 4], [], [], NULL) = 1 (in [0]) read(0, "", 4096) = 0 sendto(4, "", 0, 0, NULL, 0) = 0

as fast as possible, which burns the CPU for jobs run without a tty console on stdin (the case from Gitlab)

Merge request reports

Loading