Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wscons Injecting events into a mux that is not open ...
details: https://anonhg.NetBSD.org/src/rev/eeb5c75e849a
branches: trunk
changeset: 517762:eeb5c75e849a
user: augustss <augustss%NetBSD.org@localhost>
date: Mon Nov 19 00:37:22 2001 +0000
description:
Injecting events into a mux that is not open is not an error.
diffstat:
sys/dev/wscons/wsmux.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r f3b9c910508a -r eeb5c75e849a sys/dev/wscons/wsmux.c
--- a/sys/dev/wscons/wsmux.c Mon Nov 19 00:22:47 2001 +0000
+++ b/sys/dev/wscons/wsmux.c Mon Nov 19 00:37:22 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsmux.c,v 1.24 2001/11/13 06:17:47 lukem Exp $ */
+/* $NetBSD: wsmux.c,v 1.25 2001/11/19 00:37:22 augustss Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsmux.c,v 1.24 2001/11/13 06:17:47 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsmux.c,v 1.25 2001/11/19 00:37:22 augustss Exp $");
#include "wsdisplay.h"
#include "wsmux.h"
@@ -410,8 +410,11 @@
DPRINTF(("%s: inject\n", sc->sc_base.me_dv.dv_xname));
evar = sc->sc_base.me_evp;
- if (evar == NULL) /* XXX is this an error? */
- return (EACCES);
+ if (evar == NULL) {
+ /* No event sink, so ignore it. */
+ DPRINTF(("wsmux_do_ioctl: event ignored\n"));
+ return (0);
+ }
s = spltty();
get = evar->get;
Home |
Main Index |
Thread Index |
Old Index