From 7d21d9723a4ed147a51119fcd31492a78b89097a Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Mon, 30 May 2022 00:08:27 +0800 Subject: [PATCH] motion-control: signal: set SA_RESTART --- cmd/motion-control/main.ha | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/motion-control/main.ha b/cmd/motion-control/main.ha index ea7b563..39af5f3 100644 --- a/cmd/motion-control/main.ha +++ b/cmd/motion-control/main.ha @@ -84,7 +84,7 @@ export fn main() int = { 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); timerfd::read(fd)!; const acc_readings = ADXL345::read(ADXL345)!; -- 2.45.2