Skip to content

Commit

Permalink
node: fix build on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Nov 4, 2011
1 parent 1024686 commit df83b47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node.cc
Expand Up @@ -2142,7 +2142,7 @@ static void EnableDebug(bool wait_connect) {


#ifdef __POSIX__
static bool EnableDebugSignalHandler(int signal) {
static void EnableDebugSignalHandler(int signal) {
// Break once process will return execution to v8
v8::Debug::DebugBreak(node_isolate);

Expand All @@ -2153,13 +2153,13 @@ static bool EnableDebugSignalHandler(int signal) {
}


static int RegisterSignalHandler(int signal, void (*handler)(int)) {
static void RegisterSignalHandler(int signal, void (*handler)(int)) {
struct sigaction sa;

memset(&sa, 0, sizeof(sa));
sa.sa_handler = handler;
sigfillset(&sa.sa_mask);
return sigaction(signal, &sa, NULL);
sigaction(signal, &sa, NULL);
}


Expand Down

0 comments on commit df83b47

Please sign in to comment.