From 64d20f888e76bfa956ca528ddb3702e9cafdaef0 Mon Sep 17 00:00:00 2001
From: Chris <applewar2@gmx.de>
Date: Sun, 2 Feb 2025 18:34:28 +0100
Subject: [PATCH] bugfix of bugfix
---
main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.c b/main.c
index e393aca..ce04d94 100644
--- a/main.c
+++ b/main.c
@@ -24,7 +24,7 @@ void read_cpu_temp() {
//write pipe
const char *pOne = "/tmp/pipeOne";
- int vOne = open(pOne, O_WRONLY O_NONBLOCK);//todo: | O_NONBLOCK
+ int vOne = open(pOne, O_WRONLY | O_NONBLOCK);//todo: | O_NONBLOCK
if (vOne == -1){
perror("Failed to open pipe one in read_cpu_temp");
return;
--
GitLab