diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-01-09 17:43:57 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-01-09 17:43:57 +0000 |
commit | 7b0429e18a4c4c461e050ddf80b34b4d48b57560 (patch) | |
tree | 5f48276268cffbd2ccb475b0b58d71c5dd3ff034 /sys/arch/i386 | |
parent | d81183f1096ef5af0e35c9fec6935595f50fde3c (diff) |
restore the prev version of the kq filter for events do not get delivered properly; reported by dugsong@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/apm.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/apm.c b/sys/arch/i386/i386/apm.c index 90f9753966a..7bb49df047a 100644 --- a/sys/arch/i386/i386/apm.c +++ b/sys/arch/i386/i386/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.56 2002/12/22 17:12:44 mickey Exp $ */ +/* $OpenBSD: apm.c,v 1.57 2003/01/09 17:43:56 mickey Exp $ */ /*- * Copyright (c) 1998-2001 Michael Shalayeff. All rights reserved. @@ -1124,9 +1124,11 @@ filt_apmread(kn, hint) struct knote *kn; long hint; { - kn->kn_data = (int)hint; + /* XXX weird kqueue_scan() semantics */ + if (hint && !kn->kn_data) + kn->kn_data = (int)hint; - return (hint != 0); + return (1); } int |