From: Lennart Poettering Date: Tue, 23 Nov 2010 00:36:54 +0000 (+0100) Subject: logger: fix error handling X-Git-Tag: v14~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aeb70c8d60dd6e21dc3e2b20072f30c045d12261;p=thirdparty%2Fsystemd.git logger: fix error handling --- diff --git a/TODO b/TODO index fbe299c9313..4b0d8aeaa00 100644 --- a/TODO +++ b/TODO @@ -69,6 +69,8 @@ * isolate multi-user.target doesn't start a getty@tty1 if we run it from graphical.target +* alsa rule file, alsa service files, alsa state file → /var/lib, sequencer soll by device node ladbar + Fedora: * obsolete readhead in system pkgs diff --git a/src/logger.c b/src/logger.c index 9c3cb1abd77..32c57f8f82a 100644 --- a/src/logger.c +++ b/src/logger.c @@ -318,7 +318,7 @@ static int stream_process(Stream *s, usec_t ts) { return 0; log_warning("Failed to read from stream: %m"); - return -1; + return -errno; }