From b07ec3fc388a5aeae51e8871aa89eefea3ce1e53 Mon Sep 17 00:00:00 2001 From: ad Date: Fri, 9 Feb 2007 21:55:00 +0000 Subject: Merge newlock2 to head. --- sys/dev/sun/event_var.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/dev/sun') diff --git a/sys/dev/sun/event_var.h b/sys/dev/sun/event_var.h index 57899afc306..49dde963e16 100644 --- a/sys/dev/sun/event_var.h +++ b/sys/dev/sun/event_var.h @@ -1,4 +1,4 @@ -/* $NetBSD: event_var.h,v 1.9 2005/12/11 12:23:56 christos Exp $ */ +/* $NetBSD: event_var.h,v 1.10 2007/02/09 21:55:29 ad Exp $ */ /* * Copyright (c) 1992, 1993 @@ -68,8 +68,11 @@ struct evvar { (ev)->ev_wanted = 0; \ wakeup((caddr_t)(ev)); \ } \ - if ((ev)->ev_async) \ + if ((ev)->ev_async) { \ + mutex_enter(&proclist_mutex); \ psignal((ev)->ev_io, SIGIO); \ + mutex_exit(&proclist_mutex); \ + } \ } void ev_init(struct evvar *); -- cgit