summaryrefslogtreecommitdiffstats
path: root/contrib/diff/lib/xmalloc.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-09-26 13:17:31 +0000
committerkib <kib@FreeBSD.org>2013-09-26 13:17:31 +0000
commit9a6c86c2977221f23d944238cdb2973a3630994f (patch)
treebf86fe1b615fbb275d1e27c1dc87faca0997ee06 /contrib/diff/lib/xmalloc.c
parentc58dbf73e0a6e0d54f57e8c3b51b2b554625defe (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud