mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
chore: defensive checking
This commit is contained in:
@@ -151,7 +151,9 @@ function run(options) {
|
||||
});
|
||||
|
||||
child.on('exit', function (code, signal) {
|
||||
process.stdin.unpipe(child.stdin);
|
||||
if (child && child.stdin) {
|
||||
process.stdin.unpipe(child.stdin);
|
||||
}
|
||||
|
||||
if (code === 127) {
|
||||
utils.log.error('failed to start process, "' + cmd.executable +
|
||||
|
||||
Reference in New Issue
Block a user