diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-07-30 05:36:33 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-07-30 05:36:33 +0000 |
commit | de8cb3b68a25be958f20b7f4f7bde69697567347 (patch) | |
tree | 0dad873cc1b1605f3fff0635181bb7b2c5453e3f /sys/dev | |
parent | 5bb9f9e23c4f9393c36fe3d9e68e18d666704edb (diff) |
Correctly drain event queue on close. Fixes PR #3874
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/hotplug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/hotplug.c b/sys/dev/hotplug.c index f11c83b84c2..131541f302c 100644 --- a/sys/dev/hotplug.c +++ b/sys/dev/hotplug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hotplug.c,v 1.3 2004/07/05 19:40:38 deraadt Exp $ */ +/* $OpenBSD: hotplug.c,v 1.4 2004/07/30 05:36:32 miod Exp $ */ /* * Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org> * @@ -135,7 +135,7 @@ hotplugclose(dev_t dev, int flag, int mode, struct proc *p) { struct hotplug_event he; - while (hotplug_get_event(&he) == 1) + while (hotplug_get_event(&he) == 0) ; opened = 0; return (0); |