Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! src: set SA_SIGINFO flag when using sa_sigaction
Co-authored-by: James M Snell <jasnell@gmail.com>
  • Loading branch information
richardlau and jasnell authored Aug 6, 2020
commit f594659350e31c7a882fdc23f5233a12d5355cbe
2 changes: 1 addition & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ void RegisterSignalHandler(int signal,
struct sigaction sa;
memset(&sa, 0, sizeof(sa));
sa.sa_sigaction = handler;
sa.sa_flags = reset_handler ? SA_RESETHAND | SA_SIGINFO : SA_SIGINFO;
sa.sa_flags = SA_SIGINFO | (reset_handler ? SA_RESETHAND : 0);
sigfillset(&sa.sa_mask);
CHECK_EQ(sigaction(signal, &sa, nullptr), 0);
}
Expand Down