jakejs / jake

JavaScript build tool, similar to Make or Rake. Built to work with Node.js.
http://jakejs.com
Apache License 2.0
1.97k stars 190 forks source link

How to know that all stdout was read #283

Closed Aetet closed 8 years ago

Aetet commented 9 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?

welearnednothing commented 8 years ago

@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.

Aetet commented 8 years ago

It is not relevant yet. We abandon jake and replace it with gulp.