chiark / gitweb /
journald: ignore failure to watch hostname_fd on older kernels
authorDave Reisner <dreisner@archlinux.org>
Fri, 21 Feb 2014 15:31:26 +0000 (10:31 -0500)
committerDave Reisner <dreisner@archlinux.org>
Fri, 21 Feb 2014 17:49:05 +0000 (12:49 -0500)
commit28def94cc8fd4394b20e2155d7130166662343c4
treec734d99cbeace21ad0d62d470b5a603026fec105
parentd60473c7ba32f2325a13f0357b23fd8e25609650
journald: ignore failure to watch hostname_fd on older kernels

Prior to 3.2, /proc/sys/kernel/hostname isn't a pollable file and
sd_event_add_io will return EPERM. Ignore this failure, since it isn't
critical to journald operation.

Reported and tested by user sraue on IRC.
src/journal/journald-server.c