From owner-freebsd-usb@FreeBSD.ORG Wed Oct 9 21:26:01 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 658809DA for ; Wed, 9 Oct 2013 21:26:01 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B6CB52734 for ; Wed, 9 Oct 2013 21:26:00 +0000 (UTC) Received: from ur.dons.net.au (ppp118-210-202-219.lns20.adl6.internode.on.net [118.210.202.219]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id r99LPcoF063619 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 10 Oct 2013 07:55:45 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Subject: Re: USB config SX lock deadlock Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: multipart/signed; boundary="Apple-Mail=_CD429B30-8A1F-4D70-86E3-B936B8591679"; protocol="application/pgp-signature"; micalg=pgp-sha1 From: "Daniel O'Connor" In-Reply-To: <52554855.6030404@bitfrost.no> Date: Thu, 10 Oct 2013 07:55:38 +1030 Message-Id: References: <9783900F-08A1-41FB-81B8-3C9809B82521@gsoft.com.au> <52553000.2010003@bitfrost.no> <52554855.6030404@bitfrost.no> To: Hans Petter Selasky X-Mailer: Apple Mail (2.1510) X-Spam-Score: 0.163 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2013 21:26:01 -0000 --Apple-Mail=_CD429B30-8A1F-4D70-86E3-B936B8591679 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On 09/10/2013, at 22:43, Hans Petter Selasky wrote: > On 10/09/13 12:38, Daniel O'Connor wrote: >> On 09/10/2013, at 20:59, Hans Petter Selasky wrote: >> It is actually running r253505, sorry I should have mentioned that = before. >>=20 >> It isn't a serial device, although the driver is a thin wrapper = around the usb_fifo code (which is very useful - thanks :) >=20 > Does your application close the file handle when it gets a read/poll = error? It might under some circumstances but not directly.=20 It has 3 sub interfaces, if there is an error on one the the DAQ program = will call abort() which would result in FDs being closed. However that sub interface does not use read/poll only ioctl. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --Apple-Mail=_CD429B30-8A1F-4D70-86E3-B936B8591679 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iD8DBQFSVcnS5ZPcIHs/zowRAoQEAJwMx8HAOh/k0cJPGl0JmqG5wSFgwQCdF1zX rXI+WH5Nio019td7/v2CMlM= =7fK1 -----END PGP SIGNATURE----- --Apple-Mail=_CD429B30-8A1F-4D70-86E3-B936B8591679--