Ish: Terminal freezes while using a named pipe

Created on 9 Nov 2020  Â·  5Comments  Â·  Source: ish-app/ish

993350C5-AE8E-4619-B2AC-7C2FEF43D3E7

I'm not a Linux expert but I guess I was using pipe correctly..? So the problem is the terminal freezes (should I call it 'freezes'?) after $(cat [named pipe]) from another terminal.

F528C390-BA37-4572-82BD-96E87B95BAB3
...and the same behavior worked on Termux.

I'm using an iPhone8 (iOS14) for iSH and a LG phone for Termux

Most helpful comment

Thank you, I have tested this myself on 1.0.4 (82). And have seen that it is not a multi window problem. I used one pts and used the commands mkfifo testififo; cat testfifo &; echo “test” > testfifo and the same effect started as you said but the program was still responsive as I could change the font size.
(I also tried to use cat > testfifo Same results.)
74EA3DEA-5CA9-4FE6-83D2-55CEE8B808E1
And then I tried mkfifo testfifo; cat testfifo > testfile &; echo “test” > testfifo and again the pts crashed again but the app stayed responsive and the file was empty.
06584093-A1BB-4735-A571-F0B819A7B9C5
So it is probably a problem with the fifo implementation.

All 5 comments

What do you exactly mean with freezes, and what where the exact commands given to ish?

@gitdev-bash Apology for my bad English,

by 'freezes' I mean pts/1 ( in this case, pts/2 did cat namedpipe and I wanted to type echo Hello > namedpipe in pts/1 ) was not responding like it lost focus or something. You know, normally, when you have a named pipe then $ cat thatpipe in terminal 1 and $ echo something > thatpipe from another terminal, it should give you an output then close the named pipe automatically.

You see, I had a named pipe called f (see pic 1).
Not just pts/1, the app freezes too.

Thank you, I have tested this myself on 1.0.4 (82). And have seen that it is not a multi window problem. I used one pts and used the commands mkfifo testififo; cat testfifo &; echo “test” > testfifo and the same effect started as you said but the program was still responsive as I could change the font size.
(I also tried to use cat > testfifo Same results.)
74EA3DEA-5CA9-4FE6-83D2-55CEE8B808E1
And then I tried mkfifo testfifo; cat testfifo > testfile &; echo “test” > testfifo and again the pts crashed again but the app stayed responsive and the file was empty.
06584093-A1BB-4735-A571-F0B819A7B9C5
So it is probably a problem with the fifo implementation.

@gitdev-bash Very cool, did not know pipes could be used this way. :)

Confirmed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

boigarfield00 picture boigarfield00  Â·  6Comments

fernandotcl picture fernandotcl  Â·  6Comments

m4rkw picture m4rkw  Â·  5Comments

jcampbell05 picture jcampbell05  Â·  5Comments

travis-mark picture travis-mark  Â·  5Comments