Commit 0e4ae567 authored by Kenton Varda's avatar Kenton Varda

Clean up formatting.

parent d1760d03
...@@ -211,10 +211,10 @@ void registerCrashHandler() { ...@@ -211,10 +211,10 @@ void registerCrashHandler() {
#endif #endif
stack.ss_size = 65536; stack.ss_size = 65536;
stack.ss_sp = reinterpret_cast<char *>(mmap(nullptr, stack.ss_size, // Note: ss_sp is char* on FreeBSD, void* on Linux and OSX.
PROT_READ | PROT_WRITE, stack.ss_sp = reinterpret_cast<char*>(mmap(
MAP_ANONYMOUS | MAP_PRIVATE nullptr, stack.ss_size, PROT_READ | PROT_WRITE,
| MAP_GROWSDOWN, -1, 0)); MAP_ANONYMOUS | MAP_PRIVATE | MAP_GROWSDOWN, -1, 0));
KJ_SYSCALL(sigaltstack(&stack, nullptr)); KJ_SYSCALL(sigaltstack(&stack, nullptr));
// Catch all relevant signals. // Catch all relevant signals.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment