diff options
author | kib <kib@FreeBSD.org> | 2013-09-26 13:17:31 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-09-26 13:17:31 +0000 |
commit | 9a6c86c2977221f23d944238cdb2973a3630994f (patch) | |
tree | bf86fe1b615fbb275d1e27c1dc87faca0997ee06 /contrib/diff/lib/xmalloc.c | |
parent | c58dbf73e0a6e0d54f57e8c3b51b2b554625defe (diff) | |
download | FreeBSD-src-9a6c86c2977221f23d944238cdb2973a3630994f.zip FreeBSD-src-9a6c86c2977221f23d944238cdb2973a3630994f.tar.gz |
Do not allow negative timeouts for kqueue timers, check for the
negative timeout both before and after the conversion to sbintime_t.
For periodic kqueue timer, convert zero timeout into 1ms, to avoid
interrupt storm on fast event timers.
Reported and tested by: pho
Discussed with: mav
Reviewed by: davide
Sponsored by: The FreeBSD Foundation
Approved by: re (marius)
Diffstat (limited to 'contrib/diff/lib/xmalloc.c')
0 files changed, 0 insertions, 0 deletions