Closed Aetet closed 8 years ago
In my program I use jake.exec, but it output wrong results for stdout. AFAIK jake.exec using child_process.spawn under the hood, but there's no any 'end' event for stdout stream. How can be sure that all stdout was read?
@Aetet Can you post your code? The returned Exec instance does emit an end event which is triggered by an exit event from child_process.spawn.
Exec
end
exit
child_process.spawn
It is not relevant yet. We abandon jake and replace it with gulp.
In my program I use jake.exec, but it output wrong results for stdout. AFAIK jake.exec using child_process.spawn under the hood, but there's no any 'end' event for stdout stream. How can be sure that all stdout was read?