sane-input-handler: fix toggleKeyboard improperly calling effect
'cant call proc when errexit is set...' this seems like a genuine limitation of osh
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user