watchexec/lib/src
Félix Saparelli 446a8d95a7 Replace event queue with a priority queue (#302)
Solves several issues, generally through delivering signals before filesystem events, preventing situations where an overwhelming amount of events makes it impossible to quit.

Does _not_ solve the problem of a queue full of lower-priority events not accepting an urgent message, but that's a rarer issue that's more complicated to overcome.

Changes the Filterer trait: adds Priority to `check_event()`

Makes some events unfilterable (Urgent priority): SIGINT, SIGTERM, and CTRL_C to the main process. These still need to be handled by `on_action` to do anything, but cannot be stopped before reaching that.
2022-06-11 06:43:11 +00:00
..
action Replace event queue with a priority queue (#302) 2022-06-11 06:43:11 +00:00
command Replace event queue with a priority queue (#302) 2022-06-11 06:43:11 +00:00
error Replace event queue with a priority queue (#302) 2022-06-11 06:43:11 +00:00
filter Replace event queue with a priority queue (#302) 2022-06-11 06:43:11 +00:00
ignore Replace event queue with a priority queue (#302) 2022-06-11 06:43:11 +00:00
signal Replace event queue with a priority queue (#302) 2022-06-11 06:43:11 +00:00
action.rs Split up action in mods 2022-01-29 02:39:06 +13:00
command.rs Add process supervisor to watch command to completion 2021-09-03 05:22:15 +12:00
config.rs Change on_error to let the handler raise a CriticalError 2022-02-07 17:15:27 +13:00
error.rs Add context to io errors 2022-01-16 19:46:52 +13:00
event.rs Replace event queue with a priority queue (#302) 2022-06-11 06:43:11 +00:00
filter.rs Replace event queue with a priority queue (#302) 2022-06-11 06:43:11 +00:00
fs.rs Replace event queue with a priority queue (#302) 2022-06-11 06:43:11 +00:00
handler.rs Add HandlerLock wrapper 2022-01-29 02:08:34 +13:00
ignore.rs Reorganise the ignore mod for brevity 2022-01-15 15:12:32 +13:00
lib.rs Fix watchexec example in docs found in #295 (#297) 2022-06-07 09:19:16 +00:00
paths.rs Deduplicate paths in summarise_events_to_env 2022-01-31 02:14:28 +13:00
project.rs Add support for Pijul and Subversion 2022-01-16 16:13:05 +13:00
signal.rs Handle signalling to sub process on non-unix 2021-10-16 01:21:52 +13:00
swaplock.rs Deny 2018 idioms 2022-04-13 22:59:43 +12:00
watchexec.rs Replace event queue with a priority queue (#302) 2022-06-11 06:43:11 +00:00