Skip to content

Commit

Permalink
Merge pull request microsoft#287 from Microsoft/tyriar/ctrl_c
Browse files Browse the repository at this point in the history
Restore default ctrl+c handler in conpty support
  • Loading branch information
Tyriar authored May 2, 2019
2 parents 575c482 + 6b5ff70 commit 3f4ef58
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 3f4ef58

Please sign in to comment.