diff options
author | 2022-01-17 13:56:09 +0100 | |
---|---|---|
committer | 2022-01-17 13:56:09 +0100 | |
commit | b8d282c7d53bbb0876ee02b10bf7b487932cb80e (patch) | |
tree | a2ea8d0b55cc0a553364727964c5026cbe424400 /src | |
parent | Bump github/codeql-action from 1.0.26 to 1.0.27 (diff) | |
download | firejail-b8d282c7d53bbb0876ee02b10bf7b487932cb80e.tar.gz firejail-b8d282c7d53bbb0876ee02b10bf7b487932cb80e.tar.zst firejail-b8d282c7d53bbb0876ee02b10bf7b487932cb80e.zip |
gcov
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/cgroup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/firejail/cgroup.c b/src/firejail/cgroup.c index bd4e8d2df..f1e16187f 100644 --- a/src/firejail/cgroup.c +++ b/src/firejail/cgroup.c | |||
@@ -18,6 +18,7 @@ | |||
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
19 | */ | 19 | */ |
20 | #include "firejail.h" | 20 | #include "firejail.h" |
21 | #include "../include/gcov_wrapper.h" | ||
21 | #include <sys/wait.h> | 22 | #include <sys/wait.h> |
22 | #include <errno.h> | 23 | #include <errno.h> |
23 | 24 | ||
@@ -122,6 +123,9 @@ void set_cgroup(const char *fname, pid_t pid) { | |||
122 | drop_privs(0); | 123 | drop_privs(0); |
123 | 124 | ||
124 | do_set_cgroup(fname, pid); | 125 | do_set_cgroup(fname, pid); |
126 | |||
127 | __gcov_flush(); | ||
128 | |||
125 | _exit(0); | 129 | _exit(0); |
126 | } | 130 | } |
127 | waitpid(child, NULL, 0); | 131 | waitpid(child, NULL, 0); |