From f8b2d1c80a9041758ad25438b3512e79d9f7db0d Mon Sep 17 00:00:00 2001 From: stelcheck Date: Fri, 15 Dec 2017 04:51:33 +0900 Subject: [PATCH] Disable detaching sub-process on Windows Fixes #480 --- src/bin.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin.ts b/src/bin.ts index 697dcbb60..0e167e654 100644 --- a/src/bin.ts +++ b/src/bin.ts @@ -61,7 +61,12 @@ v8flags(function (err, v8flags) { // are propagated to the process tree, but `kill` is not. // // See: https://nodejs.org/api/child_process.html#child_process_options_detached - detached: true, + // + // This fix is not being required on Windows; besides, detached mode + // runs differently on Windows than on other platforms, and it would break + // the behavior of this application. See https://github.com/TypeStrong/ts-node/issues/480 + // for more details. + detached: process.platform !== 'win32', stdio: 'inherit' } )