Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Certain non-text output from launched commands hangs parallel #20

Closed
Shnatsel opened this issue Sep 24, 2016 · 4 comments
Closed

Certain non-text output from launched commands hangs parallel #20

Shnatsel opened this issue Sep 24, 2016 · 4 comments

Comments

@Shnatsel
Copy link

The following command works with GNU parallel but hangs Rust parallel:

echo testcase.gz | parallel cat '{}' > /dev/null

The testcase file is attached: testcase.gz

@mmstick
Copy link
Owner

mmstick commented Sep 24, 2016

I'll have the test case added as a unit test and I'll try to see what's causing the hang.

@mmstick
Copy link
Owner

mmstick commented Sep 25, 2016

I know what's causing it. I'm handling outputs by line-buffering them, but because the binary file does not contain newlines, it is hung waiting to read a newline that will never appear.

@mmstick
Copy link
Owner

mmstick commented Sep 28, 2016

I'll have a fix released later today. I submitted a pull request for redox's ion shell to support brace expansion and variable brace expansion yesterday, so today I'm working on getting this fixed.

@mmstick
Copy link
Owner

mmstick commented Sep 28, 2016

The 0.5.1 update that I've just merged should fix this problem.

@mmstick mmstick closed this as completed Nov 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants