diff options
Diffstat (limited to 'src/firemon/procevent.c')
-rw-r--r-- | src/firemon/procevent.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/firemon/procevent.c b/src/firemon/procevent.c index e2dd5aaa2..1940f4a34 100644 --- a/src/firemon/procevent.c +++ b/src/firemon/procevent.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <arpa/inet.h> | 28 | #include <arpa/inet.h> |
29 | #include <time.h> | 29 | #include <time.h> |
30 | #include <fcntl.h> | 30 | #include <fcntl.h> |
31 | #include <sys/uio.h> | ||
32 | |||
31 | #define PIDS_BUFLEN 4096 | 33 | #define PIDS_BUFLEN 4096 |
32 | #define SERVER_PORT 889 // 889-899 is left unassigned by IANA | 34 | #define SERVER_PORT 889 // 889-899 is left unassigned by IANA |
33 | 35 | ||
@@ -89,7 +91,8 @@ static int pid_is_firejail(pid_t pid) { | |||
89 | 91 | ||
90 | // list of firejail arguments that don't trigger sandbox creation | 92 | // list of firejail arguments that don't trigger sandbox creation |
91 | // the initial -- is not included | 93 | // the initial -- is not included |
92 | char *firejail_args = "ls list tree x11 help version top netstats debug-syscalls debug-errnos debug-protocols"; | 94 | char *firejail_args = "ls list tree x11 help version top netstats debug-syscalls debug-errnos debug-protocols " |
95 | "protocol.print debug.caps shutdown bandwidth caps.print cpu.print debug-caps fs.print get overlay-clean "; | ||
93 | 96 | ||
94 | int i; | 97 | int i; |
95 | char *start; | 98 | char *start; |
@@ -189,6 +192,10 @@ static int procevent_monitor(const int sock, pid_t mypid) { | |||
189 | tv.tv_usec = 0; | 192 | tv.tv_usec = 0; |
190 | 193 | ||
191 | while (1) { | 194 | while (1) { |
195 | #ifdef HAVE_GCOV | ||
196 | __gcov_flush(); | ||
197 | #endif | ||
198 | |||
192 | #define BUFFSIZE 4096 | 199 | #define BUFFSIZE 4096 |
193 | char __attribute__ ((aligned(NLMSG_ALIGNTO)))buf[BUFFSIZE]; | 200 | char __attribute__ ((aligned(NLMSG_ALIGNTO)))buf[BUFFSIZE]; |
194 | 201 | ||