From 171eaa8ab31a3455b996392d97fa637fbf22f9d4 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Mon, 30 May 2022 00:06:36 +0800 Subject: [PATCH] gy-801-dump: signal: set SA_RESTART --- tools/gy-801-dump/main.ha | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gy-801-dump/main.ha b/tools/gy-801-dump/main.ha index f039173..bf1838a 100644 --- a/tools/gy-801-dump/main.ha +++ b/tools/gy-801-dump/main.ha @@ -57,7 +57,7 @@ export fn main() void = { const fd = timerfd::new(time::clock::MONOTONIC, 0)!; defer io::close(fd)!; timerfd::set(fd, (10 * time::MILLISECOND): timerfd::interval, 0)!; - signal::handle(signal::SIGINT, &sigint); + signal::handle(signal::SIGINT, &sigint, signal::flag::RESTART); const integrator = integration::new(); timerfd::read(fd)!; -- 2.45.2