How to stop an ES search?

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

How to stop an ES search?

Post by therube » Thu Feb 02, 2017 5:04 pm

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
Site Admin
Posts: 4805
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to stop an ES search?

Post by void » Sat Feb 04, 2017 6:50 am

Everything 838b or later now watches the IPC thread owner and will cancel the active IPC search if the thread is terminated.

therube
Posts: 2282
Joined: Thu Sep 03, 2009 6:48 pm

Re: How to stop an ES search?

Post by therube » Thu Jan 25, 2018 4:47 pm

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: 1353
Joined: Wed May 24, 2017 9:22 pm

Re: How to stop an ES search?

Post by NotNull » Thu Jan 25, 2018 7:01 pm

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
Site Admin
Posts: 4805
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to stop an ES search?

Post by void » Fri Jan 26, 2018 6:42 am

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: 1353
Joined: Wed May 24, 2017 9:22 pm

Re: How to stop an ES search?

Post by NotNull » Sun Jan 28, 2018 6:56 pm

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
Site Admin
Posts: 4805
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to stop an ES search?

Post by void » Tue Jan 30, 2018 7:17 am

Do you have any settings saved in your es.ini in the same location as your es.exe?

therube
Posts: 2282
Joined: Thu Sep 03, 2009 6:48 pm

Re: How to stop an ES search?

Post by therube » Tue Jan 30, 2018 12:23 pm

In my case, I have no es.ini.

NotNull
Posts: 1353
Joined: Wed May 24, 2017 9:22 pm

Re: How to stop an ES search?

Post by NotNull » Tue Jan 30, 2018 1:14 pm

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
Site Admin
Posts: 4805
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to stop an ES search?

Post by void » Wed Jan 31, 2018 10:39 am

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