mirror of
https://github.com/matrix-construct/construct
synced 2024-11-11 20:41:10 +01:00
construct: Make interruption during cmd in watch.
This commit is contained in:
parent
2110f7e632
commit
34898aaea0
1 changed files with 2 additions and 0 deletions
|
@ -399,8 +399,10 @@ construct::console::cmd__watch()
|
||||||
this->line = line; do
|
this->line = line; do
|
||||||
{
|
{
|
||||||
std::cout << '\n';
|
std::cout << '\n';
|
||||||
|
const ircd::ctx::uninterruptible ui;
|
||||||
handle_line(); try
|
handle_line(); try
|
||||||
{
|
{
|
||||||
|
ircd::ctx::interruptible(true);
|
||||||
const log::console_quiet quiet(false);
|
const log::console_quiet quiet(false);
|
||||||
ctx::sleep(sleep_time);
|
ctx::sleep(sleep_time);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue