]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-event: handle kernels that set CONFIG_PSI_DEFAULT_DISABLED more gracefully
authorLennart Poettering <lennart@poettering.net>
Mon, 27 Feb 2023 18:05:19 +0000 (19:05 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 28 Feb 2023 12:15:13 +0000 (12:15 +0000)
commit9897f5ddeae5ad4eafae15c8dd63056622458be5
tree3441466f5463673a27996d5223869ad32352cdc3
parent68a552673443cf2a80933798b9cb4d4c3e6f29ba
sd-event: handle kernels that set CONFIG_PSI_DEFAULT_DISABLED more gracefully

If CONFIG_PSI_DEFAULT_DISABLED is set in the kernel, then the PSI files
will be there, and you can open them, but read()/write() will fail.
Which is terrible, since that happens so late. But anyway, handle this
gracefully.
src/libsystemd/sd-event/sd-event.c