Permalink
Browse files

Merge pull request #2148 from psyke83/kill_joy2key

 helpers: joy2keyStop: wait for successful SIGINT
  • Loading branch information...
joolswills committed Oct 11, 2017
2 parents 19ffb68 + 9ae1f23 commit fe36b61955d06526320b4bf5e34bdb187752749f
Showing with 3 additions and 2 deletions.
  1. +3 −2 scriptmodules/helpers.sh
View
@@ -1025,8 +1025,9 @@ function joy2keyStart() {
## @brief Stop previously started joy2key.py process.
function joy2keyStop() {
if [[ -n $__joy2key_pid ]]; then
kill -INT $__joy2key_pid 2>/dev/null
sleep 1
while kill -INT $__joy2key_pid 2>/dev/null; do
sleep 0.1
done
fi
}

0 comments on commit fe36b61

Please sign in to comment.