How to stop an ES search?

General discussion related to "Everything".
Post Reply
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

How to stop an ES search?

Post by therube »

Code: Select all

ES.EXE  attrib:I
So I typed that in.
Thought better of it, so hit ^C.
That stopped the "command line action", but not the actual disk search?

Killed the everything.exe process.
(First tried killing the everything service, but that didn't do it.)


Likewise you cannot (gracefully) exit the Everything GUI while the ES search is ongoing.
void
Developer
Posts: 16764
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to stop an ES search?

Post by void »

Everything 838b or later now watches the IPC thread owner and will cancel the active IPC search if the thread is terminated.
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: How to stop an ES search?

Post by therube »

now watches the IPC thread owner and will cancel the active IPC search if the thread is terminated
Is this actually happening?
At least there continues CPU, disk I/O activity after the "Quit" (Ctrl+C).
(How long that continues, can be variable, sometimes very long, sometimes relatively short, but activity seems to be there.)
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: How to stop an ES search?

Post by NotNull »

therube wrote:
now watches the IPC thread owner and will cancel the active IPC search if the thread is terminated
Is this actually happening?
At least there continues CPU, disk I/O activity after the "Quit" (Ctrl+C).
(How long that continues, can be variable, sometimes very long, sometimes relatively short, but activity seems to be there.)
That's what I'm seeing, too:

ES.exe talks to Everything and asks it to produce some results.
If this thread is termnated (Ctrl-C), then ES.exe "hangs up" without telling Everything.exe that the results are no longer needed.
So Everything.exe keeps busy, untl it is ready to pass the results to ES.exe and finds out the line is dead.
void
Developer
Posts: 16764
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to stop an ES search?

Post by void »

This is most likely caused by highlighting search terms.

"Everything" can not be interrupted while creating the highlighted search term reply.

I've added to my TODO list: Check IPC client exists while building IPC reply message.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: How to stop an ES search?

Post by NotNull »

void wrote:This is most likely caused by highlighting search terms.

"Everything" can not be interrupted while creating the highlighted search term reply.

I've added to my TODO list: Check IPC client exists while building IPC reply message.
My ES testquery was: es.exe -export-efu test.efu C:\
( from viewtopic.php?t=5762 )
void
Developer
Posts: 16764
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to stop an ES search?

Post by void »

Do you have any settings saved in your es.ini in the same location as your es.exe?
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: How to stop an ES search?

Post by therube »

In my case, I have no es.ini.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: How to stop an ES search?

Post by NotNull »

void wrote:Do you have any settings saved in your es.ini in the same location as your es.exe?
No ES.ini in this folder or anywhere else on my system.
void
Developer
Posts: 16764
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to stop an ES search?

Post by void »

Everything 1.4 is gathering file information after the query has completed. This process can not be interrupted.

This has been fixed for Everything 1.5, for now please try the latest ES as it does not request file information that is not indexed with -export-efu.
Post Reply