Skip to content

Commit 89d62aa

Browse files
stelcheckblakeembrey
authored andcommitted
Disable detached sub-process on Windows (#489)
1 parent 129153f commit 89d62aa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/bin.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ v8flags(function (err, v8flags) {
6262
// are propagated to the process tree, but `kill` is not.
6363
//
6464
// See: https://nodejs.org/api/child_process.html#child_process_options_detached
65-
detached: true,
65+
//
66+
// This fix is not being required on Windows; besides, detached mode
67+
// runs differently on Windows than on other platforms, and it would break
68+
// the behavior of this application. See https://github.com/TypeStrong/ts-node/issues/480
69+
// for more details.
70+
detached: process.platform !== 'win32',
6671
stdio: 'inherit'
6772
}
6873
)

0 commit comments

Comments
 (0)