Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hanging when process writing into pipe has exited #104

Open
i-ky opened this issue Feb 6, 2019 · 0 comments
Open

Hanging when process writing into pipe has exited #104

i-ky opened this issue Feb 6, 2019 · 0 comments

Comments

@i-ky
Copy link

i-ky commented Feb 6, 2019

I use the command like this one:

$ ./my_script.py 2>&1 | colout -t cmake | colout -t g++ | colout -s Xml

Sometimes this command hangs. In the process list I don't see my_script, only colout processes:

develop+ 14887  0.0  0.0  12664  3068 pts/4    S+   14:17   0:00 /bin/bash /usr/local/bin/colout -t cmake
develop+ 14888  0.0  0.0  12664  3080 pts/4    S+   14:17   0:00 /bin/bash /usr/local/bin/colout -t g++
develop+ 14889  0.0  0.0  12664  2972 pts/4    S+   14:17   0:00 /bin/bash /usr/local/bin/colout -s Xml
develop+ 14890  0.2  0.4  59708 22988 pts/4    S+   14:17   0:00 python3 -m colout.colout -t cmake
develop+ 14891  0.2  0.4  59848 23324 pts/4    S+   14:17   0:00 python3 -m colout.colout -t g++
develop+ 14892  0.2  0.4  59704 23060 pts/4    S+   14:17   0:00 python3 -m colout.colout -s Xml

Doing

$ sudo strace -p 14890

reveals that this process is doing read(0.

colout was installed from GitHub. OS is Ubuntu 16.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant