diff --git a/hosts/common/programs/sane-input-handler/sane-input-handler b/hosts/common/programs/sane-input-handler/sane-input-handler index be534b4a8..e44ef595c 100755 --- a/hosts/common/programs/sane-input-handler/sane-input-handler +++ b/hosts/common/programs/sane-input-handler/sane-input-handler @@ -331,7 +331,10 @@ proc toggleKeyboard { # `env` so that we get the right `kill` binary instead of bash's builtin # `kill` only one keyboard process. in the case of e.g. sandboxing, # the keyboard might consist of multiple processes and each one we signal would cause a toggle - if effect env kill -s RTMIN+0 "$p" { + try { + effect env kill -s RTMIN+0 "$p" + } + if ! failed { break } }