Skip to content

node blocks when piping to standard output. Git for Bash on Windows 10, Cygwin too. #11514

@coderextreme

Description

@coderextreme
  • Version:v7.6.0, v6.10.0
  • Platform: MINGW64_NT-10.0 DESKTOP-DOPK2VD 2.6.1(0.306/5/3) 2017-01-20 15:23 x86_64 Msys
    CYGWIN_NT-10.0 DESKTOP-DOPK2VD 2.6.1(0.305/5/3) 2016-12-16 11:55 x86_64 Cygwin
  • Subsystem:standard input/standard output

$ cat fillbuffer.js

console.log(0);
$ yes | xargs node fillbuffer.js|tee xxx
0
0

[ I expect many more 0's going down the page and filling up the file system in the xxx file, but unfortunately, it hangs ]

Note that I may have a virus. One is quarantined. Please let me know if you can duplicate. If not, I will look elsewhere. Note that:

$ yes| xargs -L 1 echo | tee xxx
y
y
y
y
.
.
.
[ keeps going ]

works so I think the issue is with node.js

Note that

$ yes | xargs -L 1 node fillbuffer.js|tee xxx
0
0

Hangs after 2 calls to node as well. That's what I've noticed, 2 calls and then it hangs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    processIssues and PRs related to the process subsystem.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions