I think you meant to say "you can't serve anything *until* a sub-process has completed its work"
I've been using Node for CLI scripting, and a synchronous exec would be nice to have just like the synchronous file IO is nice to have. -- Dick On Mar 14, 2013, at 2:22 PM, Sebi <[email protected]> wrote: > But, what should you do if you can't serve anything after all sub-processes > have completed where work? > > Am Donnerstag, 14. März 2013 22:02:11 UTC+1 schrieb Mikeal Rogers: > That's a great "oppertunity?" but it's not in line with the structure and > goals of node.js. > > Node has synchronous file operations. The reason it has sync file operations > is that there are many cases where you actually **want** to stop the entire > server until you get back data from the filesystem because you can't server > **any** requests until it's come back. In this case, not only is a sync file > operation required, it's actually more efficient than using an async > operation (at least in node.js). > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
