Subject: CVS commit: src/usr.bin/usbhidaction
To: None <source-changes@NetBSD.org>
From: David Sainty <dsainty@netbsd.org>
List: source-changes
Date: 07/02/2005 04:05:09
Module Name:	src
Committed By:	dsainty
Date:		Sat Jul  2 04:05:09 UTC 2005

Modified Files:
	src/usr.bin/usbhidaction: usbhidaction.c

Log Message:
By setting close-on-exec on the USB HID device descriptor, prevent passing an
extraneous descriptor to the command defined as the action to take on a
particular HID event.

This also avoids an unfortunate side-effect: killing and restarting
usbhidaction would sometimes fail because of a lingering open descriptor for
the same device on a process executed by the previous run of usbhidaction.

[OK'd by Lennart]


To generate a diff of this commit:
cvs rdiff -r1.18 -r1.19 src/usr.bin/usbhidaction/usbhidaction.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.