Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jun 2009 08:38:55 GMT
From:      Sylvestre Gallon <syl@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 164648 for review
Message-ID:  <200906180838.n5I8ct7t075995@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=164648

Change 164648 by syl@syl_pablo on 2009/06/18 08:38:38

	Use the poll flags used by libusb20_dev_wait_process().

Affected files ...

.. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.c#40 edit

Differences ...

==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.c#40 (text+ko) ====

@@ -380,7 +380,8 @@
 	hdl->dev = libusb_ref_device(dev);
 	hdl->claimed_interfaces = 0;
 	hdl->os_priv = dev->os_priv;
-	err = usb_add_pollfd(ctx, libusb20_dev_get_fd(pdev), POLLOUT);
+	err = usb_add_pollfd(ctx, libusb20_dev_get_fd(pdev), POLLIN |
+	    POLLOUT | POLLRDNORM | POLLWRNORM);
 	if (err < 0) {
 		libusb_unref_device(dev);
 		free(hdl);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906180838.n5I8ct7t075995>