diff --git a/sys/src/cmd/aux/wacom.c b/sys/src/cmd/aux/wacom.c index 876d4ab15..cbf77a9dd 100644 --- a/sys/src/cmd/aux/wacom.c +++ b/sys/src/cmd/aux/wacom.c @@ -303,11 +303,13 @@ tabletread(Req* req) reply(req, m); msgdecref(m); } else { + lock(&readers); if(r->req) { respond(req, "no concurrent reads, please"); } else { r->req = req; } + unlock(&readers); } }