Inspecting the wezterm process with `lsof -p`, before and after closing a pane with `CloseCurrentPane`, the same number of unix domain sockets are open, which is bad. This commit tries a bit harder to clean things up: if we got a process exit condition we now remember that we had it, and, while processing the IO for that channel, if we have no data for stdout or stderr (respectively) and the channel exited, we close our end of the socketpair to encourage EOF to be detected on the other end. This is sufficient to restore the number of open files to the same number wezterm had opened prior to opening that pane. @chipsenkbeil: this might possibly be a factor in the issue you reported, but I haven't had time to really dig into that yet! refs: https://github.com/wez/wezterm/issues/2466 refs: https://github.com/wez/wezterm/issues/2456
This directory contains the sources for the documentation. Read the generated documentation at: https://wezfurlong.org/wezterm