From 34898aaea0333330b13afd934b66af8600a85755 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 11 Sep 2019 18:29:24 -0700 Subject: [PATCH] construct: Make interruption during cmd in watch. --- construct/console.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/construct/console.cc b/construct/console.cc index 61748d8e9..205092a99 100644 --- a/construct/console.cc +++ b/construct/console.cc @@ -399,8 +399,10 @@ construct::console::cmd__watch() this->line = line; do { std::cout << '\n'; + const ircd::ctx::uninterruptible ui; handle_line(); try { + ircd::ctx::interruptible(true); const log::console_quiet quiet(false); ctx::sleep(sleep_time); }