]> arthur.barton.de Git - netdata.git/blob - src/popen.h
disable plugins based on their exit code
[netdata.git] / src / popen.h
1 #include <stdio.h>
2 #include <unistd.h>
3 #include <sys/types.h>
4
5 #ifndef NETDATA_POPEN_H
6 #define NETDATA_POPEN_H 1
7
8 #define PIPE_READ 0
9 #define PIPE_WRITE 1
10
11 extern FILE *mypopen(const char *command, pid_t *pidptr);
12 extern int mypclose(FILE *fp, pid_t pid);
13
14 #endif /* NETDATA_POPEN_H */