blob: e205455fbc37818a24a4b99cd99567970680354d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- base/test/launcher/test_launcher.cc.orig 2020-07-07 21:58:11 UTC
+++ base/test/launcher/test_launcher.cc
@@ -55,6 +55,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#if defined(OS_POSIX)
+#include <signal.h>
#include <fcntl.h>
#include "base/files/file_descriptor_watcher_posix.h"
@@ -557,7 +558,7 @@ ChildProcessResults DoLaunchChildTestProcess(
#if !defined(OS_FUCHSIA)
options.new_process_group = true;
#endif
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
options.kill_on_parent_death = true;
#endif
|