Skip to content
Snippets Groups Projects
Commit 4b2684d5 authored by Chris's avatar Chris
Browse files

i forgot sth

parent ff19954e
No related branches found
No related tags found
1 merge request!2Adding scalability
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <string.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) static void read_cpu_freq_and_write(int fd)
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <string.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) static void read_cpu_temp_and_write(int fd)
{ {
......
...@@ -7,11 +7,12 @@ ...@@ -7,11 +7,12 @@
#include <errno.h> #include <errno.h>
#define MAX_PROCESSES 10 #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 #define PROCESS_MONITORING_DIR "/Processes/process_monitoring.sh" //bitte überprüfen ob das die richtige DIR ist
typedef struct { typedef struct {
char name[256]; char name[256]; //processname
char pipe_path[256]; char pipe_path[256];
int fd; int fd;
} ProcessPipe; } ProcessPipe;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment