summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/BUILD
diff options
context:
space:
mode:
authorRahat Mahmood <rahat@google.com>2021-08-05 18:44:10 -0700
committergVisor bot <gvisor-bot@google.com>2021-08-05 18:47:30 -0700
commit15853bdc88523021f89261860eaebab06bb19dbf (patch)
tree46452d61cbd79c96cc10ae3244f84bfc960206dd /test/syscalls/linux/BUILD
parenta72efae969e6affc406efa9bccaa23b09e99b43c (diff)
Replace unsafe use of fork() in msgqueue tests.
Msgqueue tests were using fork() to run create a separate thread of execution for passing messages back and forth over a queue. However, the child process after a fork() may only use async-signal-safe functions, which at a minimum exclude gtest asserts. Instead, use threads. PiperOrigin-RevId: 389073744
Diffstat (limited to 'test/syscalls/linux/BUILD')
-rw-r--r--test/syscalls/linux/BUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/syscalls/linux/BUILD b/test/syscalls/linux/BUILD
index 7129a797b..b7e83b5de 100644
--- a/test/syscalls/linux/BUILD
+++ b/test/syscalls/linux/BUILD
@@ -4176,6 +4176,7 @@ cc_binary(
"//test/util:temp_path",
"//test/util:test_main",
"//test/util:test_util",
+ "//test/util:thread_util",
"@com_google_absl//absl/time",
],
)