Change #238783
Category | rsyslog |
Changed by | Rainer Gerhards <rgerhards | @adiscon.com>
Changed at | Sun 06 Jul 2025 15:17:15 |
Repository | https://github.com/rsyslog/rsyslog.git |
Project | rsyslog |
Branch | master |
Revision | 97c2ac0db3b15ad2b222b71533e96a21d2295b42 |
Comments
imkmsg fix: Handle EAGAIN/EWOULDBLOCK check portably On some systems, EAGAIN and EWOULDBLOCK are defined to the same value, causing a `-Wlogical-op` warning for the redundant logical 'or' in the errno check. While portable code must check for both cases, this warning is unwanted. This change uses a preprocessor directive to conditionally compile the check for `errno == EWOULDBLOCK` only on platforms where its value differs from EAGAIN. This silences the warning without affecting portability.
Changed files
- contrib/imkmsg/kmsg.c