You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's going on is that fish is not in the foreground process group for the tty (i.e. tcgetpgrp()). Instead, the keepalive process is. fish calls select() on the tty, waiting for input. When the input occurs (you press a key) it tries to read, but gets EIO since it's no in the foreground. With b4aa2b7 we (correctly, IMO) stop reading when a read from stdin errors, so we end up exiting out.
One possible fix is to make builtin_read try to grab the tty via tcsetpgrp.
This is probably a dup of #1362 and several other issues. Nonetheless, I'm leaving this open so that others searching for issues that talk about a particular set of symptoms are more likely to find a match.
Activity
titosemi commentedon Dec 4, 2014
Thanks @zanchey
ridiculousfish commentedon Mar 23, 2015
The behavior here seems to have changed recently with b4aa2b7. I need to short this out.
ridiculousfish commentedon Mar 23, 2015
This was broken in fish 1.x as well, except with b4aa2b7 the prompt gets screwed up afterwards.
ridiculousfish commentedon Mar 24, 2015
What's going on is that fish is not in the foreground process group for the tty (i.e.
tcgetpgrp()). Instead, the keepalive process is. fish calls select() on the tty, waiting for input. When the input occurs (you press a key) it tries to read, but gets EIO since it's no in the foreground. Withb4aa2b7we (correctly, IMO) stop reading when a read from stdin errors, so we end up exiting out.One possible fix is to make
builtin_readtry to grab the tty via tcsetpgrp.krader1961 commentedon Mar 29, 2017
This is probably a dup of #1362 and several other issues. Nonetheless, I'm leaving this open so that others searching for issues that talk about a particular set of symptoms are more likely to find a match.
mqudsi commentedon Sep 19, 2018
I believe this is fixed by d9f3414 and fa66ac8. The test cases now run fine under WSL or FreeBSD.