-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
entr can't be stopped #19
Comments
I killed it without killing the parent shell by:
Also everything was tested from inside tmux. I'd like to help fix it so let me know if you have trouble reproducing. It seems like there is some special signal behavior that entr is doing. What is the expected behavior when we send SIGINT to stop |
I don't think you're having trouble killing entr, instead it sounds likethe problem is that you are trying to stop the while loop which is rapidly starting processes Try |
Yeah but why is |
In the example you just listed the while loop keeps control of
In this case SIGINT is (usually) delivered to the child process after the |
When I tested your snippet in both zsh and bash, the behavior is the same: I think all the programs making up the pipeline are supposed to receive the signal. There is no trouble with interrupting that snippet on the first ctrl+c keystroke. This is why I believe entr does something unusual with signal handling. |
I'm inclined to agree that something else is going on (though I doubt
Edit: I should note that it appears that I run into this only when running this through a Makefile. I can't reproduce OP's problem. |
@robx the example you listed, Control of the terminal is one factor (since it determines who receives |
* Add the ability to modify an existing client * Update client page using Ajax
Just doing a simple test
while in the directory
~/util
on Ubuntu 18.04.I did some testing to test if it picks up changes from new files i added with a name starting with "test". Then I added some directories using
mkdir -p
and saw that it did not watch files inside there (all what I expected)The behavior is that when I press Ctrl+C it just prints
changed: /home/slu/util/testfile
and carries on merrily. First few times it did this spamming Ctrl+C worked fine. But now, for some reason, no amount of SIGINT will stop it, and neither does SIGKILL from htop stop it.pkill -9 -f entr
isn't working either.Version 4.4, built from source.
I'll need to kill the shell parent process to stop it. I was really hoping to finally find a robust inotify tool. Linux is so good at everything except monitoring its filesystem.
The text was updated successfully, but these errors were encountered: