Re: expect eats all the ptys
Hello,
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.
Samuel
Reply to: