You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When starting fzf from a large directory (many files, many subdirectories, e.g. like my home directory), fzf begins getting the files to search through (https://github.com/junegunn/fzf/blob/master/src/core.go#L124, https://github.com/junegunn/fzf/blob/master/src/reader.go#L57), as expected. However, when I exit before it's done finding all the files (pressing ESC or C-c), the shell command it spawned via exec.Command(shell, "-c", command) remains running and does not die. When I run fzf again later and exit early, it will again abandon the spawned process, and it remains unreaped.
I current have FZF_DEFAULT_COMMAND set to rg --files --no-ignore --hidden --follow --glob "!.git/*". Thus in fish shell (likewise in bash and zsh):
I see that the reader code is called before the terminal I/O and event coordination in core.go, so I'm wondering if that has anything to do with not cleaning up these spawned processes.
The text was updated successfully, but these errors were encountered:
Yes, it's fixed now; it was related to #398 and not having the latest rg (rg wasn't handling SIGPIPE properly, issue BurntSushi/ripgrep#200). Thanks for taking the time to point that out to me.
When starting
fzf
from a large directory (many files, many subdirectories, e.g. like my home directory),fzf
begins getting the files to search through (https://github.com/junegunn/fzf/blob/master/src/core.go#L124, https://github.com/junegunn/fzf/blob/master/src/reader.go#L57), as expected. However, when I exit before it's done finding all the files (pressing ESC or C-c), the shell command it spawned viaexec.Command(shell, "-c", command)
remains running and does not die. When I runfzf
again later and exit early, it will again abandon the spawned process, and it remains unreaped.I current have
FZF_DEFAULT_COMMAND
set torg --files --no-ignore --hidden --follow --glob "!.git/*"
. Thus in fish shell (likewise in bash and zsh):I see that the reader code is called before the terminal I/O and event coordination in
core.go
, so I'm wondering if that has anything to do with not cleaning up these spawned processes.The text was updated successfully, but these errors were encountered: