Skip to content
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

Watch command does not exit when interrupt signal is sent #1213

Open
mky2 opened this issue Sep 3, 2024 · 0 comments
Open

Watch command does not exit when interrupt signal is sent #1213

mky2 opened this issue Sep 3, 2024 · 0 comments

Comments

@mky2
Copy link

mky2 commented Sep 3, 2024

After executing the command tectonic -X watch, when I press Ctrl + C sending the interrupt signal, it seems like watchexec has received the signal successfully, but the program does not terminate. Upon testing, it seems that adding action.quit_gracefully or action.quit in

if is_kill {
action.list_jobs().for_each(|(_, job)| {
job.stop();
});
return action;
}

will do the job. But I'm not sure if it is considered a "hack", or perhaps it is an intended behaviour that the interrupt signal only stop the underlying jobs and not the actual tectonic program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant