diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2007-07-25 23:11:54 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2007-07-25 23:11:54 +0000 |
commit | 070039b1c8ca03061ac4202b16fd7b3e290f5c02 (patch) | |
tree | f019791fc2b31cd7da6831063764dce783a8677e /sys/dev/pci/bktr | |
parent | 2a06794e0449288c91c5fbccd8dfe13c4cacf9d9 (diff) |
Back out the tracking of procs in struct selinfo. There's one serious
bug in the code, but as soon as I try to fix it, it seems to trigger
some other bugs. Instead of trying to figure out what's going on
while everyone suffers, it's better to back out and figure out
the bugs outside the tree.
Diffstat (limited to 'sys/dev/pci/bktr')
-rw-r--r-- | sys/dev/pci/bktr/bktr_core.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/pci/bktr/bktr_core.c b/sys/dev/pci/bktr/bktr_core.c index 9afd9893bc6..3ffed6e1394 100644 --- a/sys/dev/pci/bktr/bktr_core.c +++ b/sys/dev/pci/bktr/bktr_core.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bktr_core.c,v 1.23 2007/06/11 08:10:22 robert Exp $ */ +/* $OpenBSD: bktr_core.c,v 1.24 2007/07/25 23:11:52 art Exp $ */ /* $FreeBSD: src/sys/dev/bktr/bktr_core.c,v 1.114 2000/10/31 13:09:56 roger Exp $ */ /* @@ -651,7 +651,13 @@ common_bktr_intr( void *arg ) } /* If someone has a select() on /dev/vbi, inform them */ - selwakeup(&bktr->vbi_select); +#ifndef __OpenBSD__ + if (bktr->vbi_select.si_pid) { +#else + if (bktr->vbi_select.si_selpid) { +#endif + selwakeup(&bktr->vbi_select); + } } |