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

Clean up formatting.

parent d1760d03
......@@ -211,10 +211,10 @@ void registerCrashHandler() {
#endif
stack.ss_size = 65536;
stack.ss_sp = reinterpret_cast<char *>(mmap(nullptr, stack.ss_size,
PROT_READ | PROT_WRITE,
MAP_ANONYMOUS | MAP_PRIVATE
| MAP_GROWSDOWN, -1, 0));
// Note: ss_sp is char* on FreeBSD, void* on Linux and OSX.
stack.ss_sp = reinterpret_cast<char*>(mmap(
nullptr, stack.ss_size, PROT_READ | PROT_WRITE,
MAP_ANONYMOUS | MAP_PRIVATE | MAP_GROWSDOWN, -1, 0));
KJ_SYSCALL(sigaltstack(&stack, nullptr));
// 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