Samuel Thibault, le jeu. 07 sept. 2023 16:55:33 +0200, a ecrit: > Craig Small, le jeu. 07 sept. 2023 22:25:37 +1000, a ecrit: > > spawn creates a new process and links the ptys, wait waits for the process > > to > > die, if you change the "spawn true" to "spawn sleep 2" you'll see the script > > slow down. > > > > The script completes, ps shows no lurking scripts or true programs and yet > > the > > problem exists. > > Yes, but apparently expect leaks some fd. When running portinfo -v on > it while starting "spawn true" and "wait" by hand, we see fd(6), fd(7), > etc. appearing. So at least this is leaking, and probably very worth > checking.
That also happens on Linux: type spawn true / wait several times and you will see /dev/pts/ populating. The test passes on Linux only because its ptmx interface allows for unbound ptys. (yes, we should add ptmx support in the Hurd, help welcome!) Samuel

