From 7f87211b01bcc116eba8b01b73677ea87172e8d7 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 18 Jul 2023 13:00:38 +0200 Subject: Minor changes --- src/subscriber.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/subscriber.c') diff --git a/src/subscriber.c b/src/subscriber.c index 9902d92..08e5a25 100644 --- a/src/subscriber.c +++ b/src/subscriber.c @@ -3,7 +3,14 @@ #include #include "utils.h" +/// @brief Set to non-zero to stop the processes unsigned char __stop=0; + +/** + * @brief Stop process properly on SIGINT + * + * @param signo + */ void sighandler(int signo){ if (signo == SIGINT){ printf("Stopping...\n"); @@ -83,7 +90,6 @@ int main (int argc, char *argv []) // Write all the measurements: if(line>4){ fwrite(token, strlen(token), 1, fptr); - printf("%s\n",token); fwrite("\n",1,1,fptr); } -- cgit v1.2.3