mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 08:03:51 +02:00
keyd: Verify current udevd process is supervised by runit
Sometimes when starting the keyd service, the keyboard can become unresponsive. This is the result of keyd starting when the early udevd process is still running but before the udevd runit service has started. The udevd runit service kills the early udevd process causing the keyboard to become unresponsive until the keyd process has been terminated. The below code verifies that the supervised udevd process is the same as the currently running udevd process. Please enter the commit message for your changes. Lines starting with '#' will be ignored, and an empty message aborts the commit.
This commit is contained in:
parent
56dcfc1dea
commit
dbc1fb53a3
2 changed files with 10 additions and 1 deletions
|
@ -1,2 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Sometimes when starting the keyd service, the keyboard can become unresponsive.
|
||||||
|
# This is the result of keyd starting when the early udevd process is still running but
|
||||||
|
# before the udevd runit service has started. The udevd runit service kills the early udevd
|
||||||
|
# process causing the keyboard to become unresponsive until the keyd process has been
|
||||||
|
# terminated. The below code verifies that the supervised udevd process is the same as
|
||||||
|
# the currently running udevd process.
|
||||||
|
[ "$(cat /var/service/udevd/supervise/pid)" = "$(pgrep -x udevd)" ] || exit 1
|
||||||
|
|
||||||
exec keyd
|
exec keyd
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'keyd'
|
# Template file for 'keyd'
|
||||||
pkgname=keyd
|
pkgname=keyd
|
||||||
version=2.4.1
|
version=2.4.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
make_use_env=yes
|
make_use_env=yes
|
||||||
short_desc="Key remapping daemon for linux"
|
short_desc="Key remapping daemon for linux"
|
||||||
|
|
Loading…
Add table
Reference in a new issue