Commit 5e7da452 authored by Vitaly Lipatov's avatar Vitaly Lipatov

workaround for infinity wait in cat

parent 87f41d52
...@@ -314,7 +314,7 @@ done ...@@ -314,7 +314,7 @@ done
# if input is not console, get pkg from it too # if input is not console, get pkg from it too
if ! inputisatty ; then if ! inputisatty ; then
for opt in $(cat) ; do for opt in $(timeout 1 cat) ; do
check_filenames $opt check_filenames $opt
done done
fi fi
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
# copied from /etc/init.d/outformat (ALT Linux) # copied from /etc/init.d/outformat (ALT Linux)
# FIXME on Android: FIX ME! implement ttyname_r() bionic/libc/bionic/stubs.c:366
inputisatty() inputisatty()
{ {
# check stdin # check stdin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment