Skip to content

postmarketos-initramfs: prevent busyloop in syslogd

Backport of !6013 (merged).


when stdin is /dev/null (e.g. when console=null is on the kernel
cmdline) syslogd will call read() over and over and never handle the
SIGTERM we send it, pinning a CPU core on every boot.

Hooking up syslogd std I/O to /dev/zero prevents this.

Co-authored-by: Richard Acayan <mailingradian@gmail.com>
Co-authored-by: Clayton Craft <clayton@craftyguy.net>
[ci:skip-build]: already built successfully in CI

(cherry picked from commit 4b367a4357b3305f97928ff3caa7ed5e5ec15a25)

Merge request reports

Loading