On Friday, March 29, 2013 7:51:17 AM UTC-6, Ben Noordhuis wrote:
> On Fri, Mar 29, 2013 at 7:54 AM, Andrew Hart
> <[email protected]<javascript:>>
> wrote:
> > node -e 'process.stdin.pipe(process.stdout);
> > process.nextTick(function(){process.stdin.unpipe();});'
> node -e 'process.stdin.pipe(process.stdout);
> > setTimeout(function(){process.stdin.unpipe();}, 0);'
> >
> > The setTimeout one terminates immediately; the other waits for some
> input,
> > does NOT echo it, then terminates.
> >
>
> The setTimeout(0) thing is a bug that's fixed in v0.10.2. I'm
> guessing you're running a -pre build that doesn't have the fix.
Are you saying that waiting for additional input after no one is listening
(i.e. unpipe has been called) is the expected behavior? I would expect
unpipe to reverse the effect of pipe, leaving node with nothing to do but
exit.
This is what I'm running; I think this is the real v0.10.2:
git describe HEAD
v0.10.2
git rev-parse HEAD
1e0de9c426e07a260bbec2d2196c2d2db8eb8886
--
--
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.