do not deadlock

This commit is contained in:
Chrys
2019-10-17 23:55:39 +02:00
parent a4b4560a6b
commit a3acf7d9cc
9 changed files with 352 additions and 7 deletions

14
play zone/waitForKey1 Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
echo "1"
echo "Press 'q' to exit"
count=0
while : ; do
read -n 1 k <&1
if [[ $k = q ]] ; then
printf "\nQuitting from the program\n"
break
else
((count=$count+1))
echo "Press 'q' to exit"
fi
done