PTHREAD_STACK_MIN is not always a constexpr

PiperOrigin-RevId: 514695823
Change-Id: Iecf16f0bd563d85f80b0697d14293ff2d3133aef
This commit is contained in:
Wiktor Garbacz 2023-03-07 04:47:20 -08:00 committed by Copybara-Service
parent 9f657e6a62
commit a8db8bfcf7

View File

@ -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()) {