mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 02:02:38 +01:00
construct::console: Improve interrupt mask toggling for sleep.
This commit is contained in:
parent
5011e20c2e
commit
da5fa1217a
1 changed files with 2 additions and 1 deletions
|
@ -442,7 +442,8 @@ construct::console::cmd__watch()
|
|||
handle_line(); try
|
||||
{
|
||||
const log::console_quiet quiet(false);
|
||||
const ircd::ctx::uninterruptible ri(false);
|
||||
ctx::interruptible(ctx::cur(), true);
|
||||
ctx::interruption_point();
|
||||
ctx::sleep(sleep_time);
|
||||
}
|
||||
catch(const ctx::interrupted &)
|
||||
|
|
Loading…
Reference in a new issue