Subject: Re: bug#48118: 27.1; 28; Only first process receives output with multiple running processes

From: Philipp <[email-masked]>
Date: Fri, 4 Jun 2021 15:34:53 +0200

> Am 02.05.2021 um 09:23 schrieb Lars Ingebrigtsen <[email-masked]>:
> 
> Daniel Mendler <[email-masked]> writes:
> 
>> This is what we assumed. Emacs could check the second process the next
>> time. This way one may get a slightly more fair behavior.
> 
> Yes, more fairness in how Emacs handles process output would be nice,
> indeed.

An alternative approach would be to randomly shuffle the file descriptors before selecting on them.  At least that's what e.g. Go is doing (see the code starting from "generate permuted order" in https://golang.org/src/runtime/select.go).