2022-06-05 04:05:04 +03:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2022-05-17 19:42:52 +03:00
|
|
|
From: Brendan Coles <bcoles@gmail.com>
|
|
|
|
Date: Fri, 7 Jan 2022 17:26:40 +0100
|
2022-06-05 04:05:04 +03:00
|
|
|
Subject: [PATCH] Don't use setitimer()
|
2022-05-17 19:42:52 +03:00
|
|
|
|
|
|
|
Co-Authored-By: Tim Schumacher <timschumi@gmx.de>
|
|
|
|
---
|
|
|
|
src/main.c | 7 +------
|
|
|
|
1 file changed, 1 insertion(+), 6 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/src/main.c b/src/main.c
|
|
|
|
index d0c0d2f..7e313a0 100644
|
|
|
|
--- a/src/main.c
|
|
|
|
+++ b/src/main.c
|
2022-01-07 19:26:40 +03:00
|
|
|
@@ -12,6 +12,7 @@
|
|
|
|
#include <errno.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <math.h>
|
|
|
|
+#include <signal.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2022-05-17 19:42:52 +03:00
|
|
|
@@ -304,12 +305,6 @@ int main(int argc, char **argv)
|
2021-04-14 20:24:58 +03:00
|
|
|
signal(SIGQUIT, exit_handler);
|
|
|
|
signal(SIGPIPE, exit_handler);
|
|
|
|
signal(SIGTERM, exit_handler);
|
|
|
|
- struct itimerval itv;
|
|
|
|
- itv.it_interval.tv_sec = 0;
|
|
|
|
- itv.it_interval.tv_usec = 54925;
|
|
|
|
- itv.it_value.tv_sec = 0;
|
|
|
|
- itv.it_value.tv_usec = 54925;
|
|
|
|
- setitimer(ITIMER_REAL, &itv, 0);
|
|
|
|
init_bios_mem();
|
|
|
|
while(1)
|
|
|
|
{
|