diff options
author | Daniel Bristot de Oliveira <bristot@redhat.com> | 2020-10-12 14:29:00 +0200 |
---|---|---|
committer | Daniel Bristot de Oliveira <bristot@redhat.com> | 2020-10-12 14:29:00 +0200 |
commit | b2206b5d15582ed8cf9f5626fdbd2d955f503923 (patch) | |
tree | ab747612efae1e3d0e58ba593420eda5a180b178 | |
parent | 9fdf6bb0ac03506cb30020c9f6f8203134174a80 (diff) | |
download | stalld-b2206b5d15582ed8cf9f5626fdbd2d955f503923.tar.gz |
src/stalld: Do not die if cannot write a message to the log
Warn but do not die.
Signed-off-by: Daniel Bristot de Oliveira <bristot@redhat.com>
-rw-r--r-- | src/stalld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stalld.c b/src/stalld.c index 6c415bc..c8c9334 100644 --- a/src/stalld.c +++ b/src/stalld.c @@ -224,7 +224,7 @@ void log_msg(const char *fmt, ...) */ if (kmesg_fd) { if (write(kmesg_fd, message, strlen(message)) < 0) - die ("write to klog failed"); + warn("write to klog failed"); close(kmesg_fd); } } |