yazi
yazi copied to clipboard
Failed to stop searching after `yazi` is quitted
What system are you running Yazi on?
Linux X11
What terminal are you running Yazi in?
kitty 0.32.2
Yazi version
yazi 0.2.3 (42cbedb 2024-02-25)
Did you try the latest main branch to see if the problem got fixed?
Tried, but the problem still
Describe the bug
When searching usingrg
or fd
in a large directory, it is OK to take a long time. However, when I want to cancel the process by just quitting yazi
. The processes of rg
or fd
are still running in the background.
Open yazi
:
Searching for some file in yazi
:
fd
is still running without the presence of yazi
:
(The server is using NFS so the REAL disk IO is actually displayed in the
Network
instead of Disk IO
in the above screenshot of htop
)
Expected Behavior
After quitting yazi
, all processes related to it should be killed.
To Reproduce
- Find a large directory, for example, the root.
- Open
yazi
and search for some file, like "gagaga". - Before the
yazi
completes the search task, quit it. - You would find the searching process is still running in the background.
Configuration
no config
Anything else?
No response
How did you exit Yazi, by using q
to quit it normally, or by forcefully ending it with something like kill yazi
?
How did you exit Yazi, by using
q
to quit it normally, or by forcefully ending it with something likekill yazi
?
I exited Yazi by q
.
Hi, I made a PR trying to fix this issue https://github.com/sxyazi/yazi/pull/812, let me know if it works for you
Hi, I made a PR trying to fix this issue #812, let me know if it works for you
Thank you. It works! :smile:
I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.