]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - tools/perf/util/evlist.c
perf evlist: Reset SIGTERM handler in workload child process
[mirror_ubuntu-bionic-kernel.git] / tools / perf / util / evlist.c
index f7c727801aaba6f5e3ac31631801ce9c06e8a5c0..99b43dd18c57faf34598ae9b777327b048dab9f0 100644 (file)
@@ -776,6 +776,8 @@ int perf_evlist__prepare_workload(struct perf_evlist *evlist,
                if (pipe_output)
                        dup2(2, 1);
 
+               signal(SIGTERM, SIG_DFL);
+
                close(child_ready_pipe[0]);
                close(go_pipe[1]);
                fcntl(go_pipe[0], F_SETFD, FD_CLOEXEC);