Skip to content

Commit be0aa33

Browse files
committed
exit on stdin on non win32 platforms
1 parent 5c38c80 commit be0aa33

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/bsb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99

1010
var child_process = require('child_process')
11+
var os = require('os');
1112

1213
var bsconfig = 'bsconfig.json'
1314
var bsb_exe = __filename + ".exe"
@@ -97,8 +98,10 @@ if (watch_mode) {
9798
process.on('uncaughtException', onExit)
9899
process.stdin.on('close',onExit)
99100
// close when stdin stops
100-
// process.stdin.on('end', onExit)
101-
// process.stdin.resume()
101+
if (os.platform() !== "win32") {
102+
process.stdin.on('end', onExit)
103+
process.stdin.resume()
104+
}
102105

103106
return true
104107
} catch (exn) {

0 commit comments

Comments
 (0)