Browse files

test

  • Loading branch information...
1 parent 8a9a3d5 commit 88f491378372fd350ae751e640b807d67d385989 @indutny committed Sep 27, 2011
Showing with 1 addition and 7 deletions.
  1. +1 −1 src/node.cc
  2. +0 −6 src/node_constants.cc
View
2 src/node.cc
@@ -1612,7 +1612,7 @@ Handle<Value> Kill(const Arguments& args) {
r = kill(pid, sig);
#endif
#if defined(__MINGW32__) || defined(_MSC_VER)
- r = GenerateConsoleCtrlEvent(sig, pid) ? 1 : 0;
+ r = GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT, pid) ? 1 : 0;
#endif
if (r != 0) return ThrowException(ErrnoException(errno, "kill"));
View
6 src/node_constants.cc
@@ -752,12 +752,6 @@ void DefineConstants(Handle<Object> target) {
NODE_DEFINE_CONSTANT(target, SIGKILL);
#endif
-#ifndef SIGUSR1
-#if defined(__MINGW32__) || defined(_MSC_VER)
-#define SIGUSR1 CTRL_BREAK_EVENT
-#endif
-#endif
-
#ifdef SIGUSR1
NODE_DEFINE_CONSTANT(target, SIGUSR1);
#endif

0 comments on commit 88f4913

Please sign in to comment.