Page 1 of 1

How to stop an ES search?

Posted: Thu Feb 02, 2017 5:04 pm
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.

Re: How to stop an ES search?

Posted: Sat Feb 04, 2017 6:50 am
by void
Everything 838b or later now watches the IPC thread owner and will cancel the active IPC search if the thread is terminated.

Re: How to stop an ES search?

Posted: Thu Jan 25, 2018 4:47 pm
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.)

Re: How to stop an ES search?

Posted: Thu Jan 25, 2018 7:01 pm
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.

Re: How to stop an ES search?

Posted: Fri Jan 26, 2018 6:42 am
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.

Re: How to stop an ES search?

Posted: Sun Jan 28, 2018 6:56 pm
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 )

Re: How to stop an ES search?

Posted: Tue Jan 30, 2018 7:17 am
by void
Do you have any settings saved in your es.ini in the same location as your es.exe?

Re: How to stop an ES search?

Posted: Tue Jan 30, 2018 12:23 pm
by therube
In my case, I have no es.ini.

Re: How to stop an ES search?

Posted: Tue Jan 30, 2018 1:14 pm
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.

Re: How to stop an ES search?

Posted: Wed Jan 31, 2018 10:39 am
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.