Skip to content

Commit

Permalink
Restore default ctrl+c handler in conpty support
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed May 2, 2019
1 parent 575c482 commit 6b5ff70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/win/conpty.cc
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ static NAN_METHOD(PtyStartProcess) {
HPCON hpc;
HRESULT hr = CreateNamedPipesAndPseudoConsole({cols, rows}, 0, &hIn, &hOut, &hpc, inName, outName, pipeName);

// Restore default handling of ctrl+c
SetConsoleCtrlHandler(NULL, FALSE);

// Set return values
marshal = Nan::New<v8::Object>();

Expand Down

0 comments on commit 6b5ff70

Please sign in to comment.