summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2016-02-19 01:49:33 +0000
committermarkj <markj@FreeBSD.org>2016-02-19 01:49:33 +0000
commit32d1c3375ad5121d32b8401feaeee13981089450 (patch)
treeef3f31cabf603feda666420b4028149bee55f1ae /contrib/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parent1945f6646152d798789376bc8e4c57e124ea1707 (diff)
downloadFreeBSD-src-32d1c3375ad5121d32b8401feaeee13981089450.zip
FreeBSD-src-32d1c3375ad5121d32b8401feaeee13981089450.tar.gz
Ensure that we test the event condition when a disabled kevent is enabled.
r274560 modified kqueue_register() to only test the event condition if the corresponding knote is not disabled. However, this check takes place before the EV_ENABLE flag is used to clear the KN_DISABLED flag on the knote, so enabling a previously-disabled kevent would not result in a notification for a triggered event. This change fixes the problem by testing for EV_ENABLED before possibly checking the event condition. This change also updates a kqueue regression test to exercise this case. PR: 206368 Reviewed by: kib Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D5307
Diffstat (limited to 'contrib/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud