syslogd currently does O_NONBLOCK output to pipe. As a result any micro-burst can cause an overflow of the pipe buffer (64KB) and kill the script.
Patch allows to buffer (-g SIZE total bytes) for up to 10 seconds per script before killing script.
Details
Details
- Reviewers
jfree emaste markj eugen_grosbein.net - Group Reviewers
Contributor Reviews (src)
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
/usr/src/usr.sbin/syslogd/syslogd.c | ||
---|---|---|
1988 | cnt is size_t, an unsigned type, so this check is always false. It should be ssize_t. |
Comment Actions
cnt is size_t, an unsigned type, so this check is always false. It should be ssize_t.