Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/putter waiters gonna wait, so call seldestroy to wak...



details:   https://anonhg.NetBSD.org/src/rev/00f1e716dffa
branches:  trunk
changeset: 757374:00f1e716dffa
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Aug 27 07:40:01 2010 +0000

description:
waiters gonna wait, so call seldestroy to wake them up when we go south

diffstat:

 sys/dev/putter/putter.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 6a30814145e4 -r 00f1e716dffa sys/dev/putter/putter.c
--- a/sys/dev/putter/putter.c   Fri Aug 27 05:34:46 2010 +0000
+++ b/sys/dev/putter/putter.c   Fri Aug 27 07:40:01 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: putter.c,v 1.28 2010/04/11 09:36:47 pooka Exp $        */
+/*     $NetBSD: putter.c,v 1.29 2010/08/27 07:40:01 pooka Exp $        */
 
 /*
  * Copyright (c) 2006, 2007  Antti Kantee.  All Rights Reserved.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.28 2010/04/11 09:36:47 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.29 2010/08/27 07:40:01 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -606,6 +606,7 @@
        TAILQ_REMOVE(&putter_ilist, pi, pi_entries);
        pi->pi_private = PUTTER_DEAD;
        mutex_exit(&pi_mtx);
+       seldestroy(&pi->pi_sel);
 
        DPRINTF(("putter_nukebypmp: nuked %p\n", pi));
 }



Home | Main Index | Thread Index | Old Index