Re: [systemd-devel] [PATCH] journald: ignore failure to watch hostname_fd on older kernels

2014-02-21 Thread Dave Reisner
On Fri, Feb 21, 2014 at 06:00:46PM +0100, Zbigniew Jędrzejewski-Szmek wrote: > On Fri, Feb 21, 2014 at 11:22:50AM -0500, Dave Reisner wrote: > > 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

Re: [systemd-devel] [PATCH] journald: ignore failure to watch hostname_fd on older kernels

2014-02-21 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Feb 21, 2014 at 11:22:50AM -0500, Dave Reisner wrote: > 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. This should

[systemd-devel] [PATCH] journald: ignore failure to watch hostname_fd on older kernels

2014-02-21 Thread Dave Reisner
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 | 8 1 file changed, 8 insertions(+) diff