mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
PTHREAD_STACK_MIN is not always a constexpr
PiperOrigin-RevId: 514695823 Change-Id: Iecf16f0bd563d85f80b0697d14293ff2d3133aef
This commit is contained in:
parent
9f657e6a62
commit
a8db8bfcf7
|
@ -180,7 +180,7 @@ absl::StatusOr<std::unique_ptr<GlobalForkClient>> StartGlobalForkServer() {
|
|||
}
|
||||
|
||||
// Fork the fork-server, and clean-up the resources (close remote sockets).
|
||||
constexpr size_t kStackSize = PTHREAD_STACK_MIN;
|
||||
const size_t kStackSize = PTHREAD_STACK_MIN;
|
||||
int clone_flags = CLONE_VM | CLONE_VFORK | SIGCHLD;
|
||||
// CLONE_VM does not play well with TSan.
|
||||
if constexpr (sapi::sanitizers::IsTSan()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user