Created attachment 87825 [details] Script to reproduce bug It seems stdin is set to blocking mode somewhere and is not reset before termination[1]. I ran into this when I used the 'read' function after calling arch-nspawn[2] which uses systemd-nspawn. [1] http://stackoverflow.com/questions/16402363/read-fails-after-tcpreplay-with-error-0-resource-temporarily-unavailabl [2] https://projects.archlinux.org/devtools.git/tree/arch-nspawn.in
Using zsh instead of bash works for scripting. Apparently zsh resets the stdin itself after the invokation of systemd-nspawn.
Fixed in git. I am pretty sure though that this should be fixed in bash, too, for robustness reasons. They really should turn off non-blocking mode again, before reading from stdin...
I filed this bug to rhbz regarding bash: https://bugzilla.redhat.com/show_bug.cgi?id=1068697
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.