Skip to content

Failed to stop searching after yazi is quitted #726

@NeumoNeumo

Description

@NeumoNeumo

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:
image

Searching for some file in yazi:
image

fd is still running without the presence of yazi:
image
image
(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

  1. Find a large directory, for example, the root.
  2. Open yazi and search for some file, like "gagaga".
  3. Before the yazi completes the search task, quit it.
  4. You would find the searching process is still running in the background.

Configuration

no config

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions