diff options
author | jmz <jmz@FreeBSD.org> | 2001-08-23 22:36:49 +0000 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 2001-08-23 22:36:49 +0000 |
commit | 7ecfc6d7d5ae5c44f8676e1ea8da51f517939943 (patch) | |
tree | de17a40377744efc588ebae606c9d716c5088d81 /x11/XFree86-4 | |
parent | ec14723580333d2d48eca326b6ca8a0e2858b2ba (diff) | |
download | FreeBSD-ports-7ecfc6d7d5ae5c44f8676e1ea8da51f517939943.zip FreeBSD-ports-7ecfc6d7d5ae5c44f8676e1ea8da51f517939943.tar.gz |
Fix a race condition in mouse device.
PR: ports/29982
Submitted by: Michael Robinson <robinson@netrinsics.com>
Diffstat (limited to 'x11/XFree86-4')
-rw-r--r-- | x11/XFree86-4/Makefile | 2 | ||||
-rw-r--r-- | x11/XFree86-4/files/patch-mouse | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/x11/XFree86-4/Makefile b/x11/XFree86-4/Makefile index 5bf5b23..2dcafe7 100644 --- a/x11/XFree86-4/Makefile +++ b/x11/XFree86-4/Makefile @@ -7,7 +7,7 @@ PORTNAME= XFree86 PORTVERSION= 4.1.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_XFREE} MASTER_SITE_SUBDIR= 4.1.0 diff --git a/x11/XFree86-4/files/patch-mouse b/x11/XFree86-4/files/patch-mouse new file mode 100644 index 0000000..314a57f --- /dev/null +++ b/x11/XFree86-4/files/patch-mouse @@ -0,0 +1,22 @@ +--- programs/Xserver/hw/xfree86/input/mouse/mouse.c.orig Sat Aug 18 22:47:30 2001 ++++ programs/Xserver/hw/xfree86/input/mouse/mouse.c Thu Aug 23 17:13:44 2001 +@@ -1837,8 +1837,6 @@ + if ((id = stateTab[pMse->emulateState][4][0]) != 0) { + xf86PostButtonEvent(pInfo->dev, 0, abs(id), (id >= 0), 0, 0); + pMse->emulateState = stateTab[pMse->emulateState][4][2]; +- } else { +- ErrorF("Got unexpected buttonTimer in state %d\n", pMse->emulateState); + } + + xf86UnblockSIGIO (sigstate); +@@ -1892,11 +1890,6 @@ + if (stateTab[pMse->emulateState][4][0] != 0) { + timer = TimerSet(timer, 0, pMse->emulate3Timeout, buttonTimer, + pInfo); +- } else { +- if (timer) { +- TimerFree(timer); +- timer = NULL; +- } + } + } |