Skip to content

Commit

Permalink
gcov
Browse files Browse the repository at this point in the history
  • Loading branch information
smitsohu committed Jan 17, 2022
1 parent 5f8dc7a commit b8d282c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/firejail/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "firejail.h"
#include "../include/gcov_wrapper.h"
#include <sys/wait.h>
#include <errno.h>

Expand Down Expand Up @@ -122,6 +123,9 @@ void set_cgroup(const char *fname, pid_t pid) {
drop_privs(0);

do_set_cgroup(fname, pid);

__gcov_flush();

_exit(0);
}
waitpid(child, NULL, 0);
Expand Down

0 comments on commit b8d282c

Please sign in to comment.