diff --git a/Processes/cpu_freq.c b/Processes/cpu_freq.c index 6efd32cf57cc46751d33ee1414854fc46015fb39..31b707c936a089b1f1ffdce80998ca055e655603 100644 --- a/Processes/cpu_freq.c +++ b/Processes/cpu_freq.c @@ -5,7 +5,7 @@ #include <fcntl.h> #include <string.h> -static const char *PIPE_TWO = "/tmp/pipeTwo"; +static const char *PIPE_TWO = "/tmp/cpu_freq"; static void read_cpu_freq_and_write(int fd) { diff --git a/Processes/cpu_temp.c b/Processes/cpu_temp.c index 9ff26c602c66c144bd5636a123e18c194261f691..16aabd01a36475b3cbff92df5a51482278edaebb 100644 --- a/Processes/cpu_temp.c +++ b/Processes/cpu_temp.c @@ -5,7 +5,7 @@ #include <fcntl.h> #include <string.h> -static const char *PIPE_ONE = "/tmp/pipeOne"; +static const char *PIPE_ONE = "/tmp/cpu_temp"; static void read_cpu_temp_and_write(int fd) { diff --git a/main.c b/main.c index 297123d10f2935301c1c2c6ae91c047af9293590..5d0d3590e9486bf2ceee38524080e3600675dd48 100644 --- a/main.c +++ b/main.c @@ -7,12 +7,13 @@ #include <errno.h> #define MAX_PROCESSES 10 -#define PIPE_DIR "/tmp/" +#define PIPE_DIR "/tmp/" //name von pipe ist jetzt gleich name von process +// bsp.: /usr/local/bin/cpu_temp hat die pipe /tmp/cpu_freq #define PROCESS_MONITORING_DIR "/Processes/process_monitoring.sh" //bitte überprüfen ob das die richtige DIR ist typedef struct { - char name[256]; - char pipe_path[256]; + char name[256]; //processname + char pipe_path[256]; int fd; } ProcessPipe;