blob: 4bd0a3131490f602397026e42cedc9a8fc54e9a2 (
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-09-08 19:13:57 UTC
+++ base/test/launcher/test_launcher.cc
@@ -56,6 +56,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"
@@ -582,7 +583,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
|