From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 1 13:35:48 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2874716A41F; Mon, 1 Aug 2005 13:35:48 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id A982F43D5C; Mon, 1 Aug 2005 13:35:47 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id 77E86A3D83; Mon, 1 Aug 2005 15:35:46 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id 5675E63A4; Mon, 1 Aug 2005 15:35:46 +0200 (CEST) Date: Mon, 1 Aug 2005 15:35:46 +0200 From: Marc Olzheim To: soc-victor@freebsd.org Message-ID: <20050801133546.GA39886@stack.nl> References: <494025505080104427c3f91f6@mail.gmail.com> <20050801130502.GA39470@stack.nl> <494025505080106336a329bb@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <494025505080106336a329bb@mail.gmail.com> X-Operating-System: FreeBSD hammer.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i Cc: Marc Olzheim , freebsd-hackers@freebsd.org Subject: Re: O_NONBLOCK for devices with removable media X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2005 13:35:48 -0000 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 01, 2005 at 04:33:23PM +0300, victor cruceru wrote: > Hi Marc, > Thanks for the info. Here it is one my situation. I have a CF reader (ful= ly=20 > detected by the USB subsystem) with two slots > (one with a media and one without any media). An open with O_NONBLOCK on = the=20 > empty slot (/dev/da1) is blocking me. > Is this OK?=20 Hmm, it seems not. Perhaps is trying to do its magic first. What's the wchan of the process doing the open() ? Marc --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC7iUyezjnobFOgrERAss6AKCyQ1MPXsGr2fu8RFgXHKG30e4heQCeOYgB csSr5SfkUNyoqwLuPL6J5sA= =aLlU -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI--