~xdavidwu/motion-control

171eaa8ab31a3455b996392d97fa637fbf22f9d4 — xdavidwu 2 years ago 26a4364
gy-801-dump: signal: set SA_RESTART
1 files changed, 1 insertions(+), 1 deletions(-)

M tools/gy-801-dump/main.ha
M tools/gy-801-dump/main.ha => tools/gy-801-dump/main.ha +1 -1
@@ 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)!;