From f4eb0770df0a5b43a14c37215dfa0ebee204abb0 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 20 Jul 2007 08:25:55 +0000 Subject: added the capability to continue trying to write log files when the file system is full. Functionality based on patch by Martin Schulze to sysklogd package. --- syslogd.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'syslogd.c') diff --git a/syslogd.c b/syslogd.c index 7b23a3da..90700a41 100644 --- a/syslogd.c +++ b/syslogd.c @@ -5392,6 +5392,13 @@ again: if (f->f_type == F_PIPE && e == EAGAIN) return; + /* If the filesystem is filled up, just ignore + * it for now and continue writing when possible + * based on patch for sysklogd by Martin Schulze on 2007-05-24 + */ + if (f->f_type == F_FILE && e == ENOSPC) + return; + (void) close(f->f_file); /* * Check for EBADF on TTY's due to vhangup() -- cgit v1.2.3