delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=BSkHQ5vHhHLjIoSsN1k9OLe1yyHKFTVV/AtX6HCj6hGH05zy2EBLu | |
1Xc5INKhfXgR7k2qpWrU0ycwHaFZAmuVenNqwtFZ4kf1wYhOxkEnLffDAQEuMktH | |
4h3vWwI5jnUrQLMJuP7/gYNqVI93jrPS/Ez2ErvtRWXxwXLYNvt+qU= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=cw7Ny8dedBc/j8pul4OU8Gmzg/c=; b=AuLNsHAA6ebt7o4M3lvSonP/pHZA | |
9Mj8eC4Val8W6KdITmmY6dJaj0tgd99x9tcY/Y4HYw6u73xpFV/tBnrQZ2/ZzyB9 | |
WDq4JVj1mGdAya9+PexbDPHQvJBBpeznK6xqIhWat7UI3gzd/no/hK2CXNuqj4Fd | |
pgQF1WiZZOtcc84= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-101.9 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*R:D*cygwin.com, dear, Dear, H*c:application |
X-HELO: | drew.franken.de |
Date: | Tue, 10 Oct 2017 11:58:32 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: SIGIO using UDP sockets just hangs (permantely blocks) socket I/O. |
Message-ID: | <20171010095832.GA20561@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <embecdb725-8b17-4963-84ed-12e570da7532 AT str-c> |
MIME-Version: | 1.0 |
In-Reply-To: | <embecdb725-8b17-4963-84ed-12e570da7532@str-c> |
User-Agent: | Mutt/1.9.1 (2017-09-22) |
--huq684BweRXVnRxX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sep 30 11:50, tvonderhaar wrote: > Dear cygwin_list, >=20 > I have tried to get signals working with UDP bound sockets. I have > tried every combination and order of the included code, but once I > ioctl() the socket with "FIOASYNC" I get one signal from the socket and > the previously "FNDELAY" set socket blocks forever on a call to > recvfrom(). I can detect the block with a select, but it never becomes > ready. This code works flawlessly on Linux and in the past worked on > SUN,HP- UX(I remove the HP specific code) and Alpha OSes. If I don't > perform the ioctl() with "FIOASYNC" or perform a second call to ioctl() > with the "set_state=3D0" the socket does not block as expected, but I of > course I don't get my SIGIO signal. Note: I make the call to the > function as follows: >=20 > set_io_async(udp_socket_fd,call_back,SIGIO,FALSE); > /*FASLE defined as '0' and SIGIO as defined by CYGWIN.*/ >=20 > I only found one google search of an individual attempting non-blocking > asynchronous() I/O and they indicated it worked using this code sequence > under CYGWIN. "FASYNC" has no affect on CYGWIN using fcntl() as after FASYNC/O_ASYNC is not supported at all by Cygwin and never was. Signal-driven IO was never very high on the wishlist, so it wasn't fully implemented. What about using select from another thread instead? Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --huq684BweRXVnRxX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZ3JnIAAoJEPU2Bp2uRE+gy4wP+wT22z8IkWH0mfQck+FKkL3q M62TuFNBj+sP4ZnYOKWxo5BFKalUNg/TuPE2moQR2v4nQIm6kOB3pw2eL9P6ayIG HieQyFMHO58Z+7zVpUDCOWuc1N6UchKQHy9qmqr04iG7EgW52/T1a5YgtHVteChb jHbzNao9VLn/97QJefwsC3yLA4fg1c9gz644eNS9BWT//YNtpRpVIjnX6RRTTbv6 yMifUvwKSs5py+WxVdDbrO/5OZOLfRFV3+MgvKN5oxrqL2S+uNzSybZZXg1Sd4Cy AdSs9hHbjCi57WE5YZ56w06eStcqKR+kEaWe7WWm58SW7hK132v90Kw42lPHO1AI kzTBCrhi1QhCqIsKmzL06RnKOhpOvR4dODiE5GueWdGpmUxf/9MNP1Nl5+bQB1EN 1iJKh+X0U0FWfSPov+Yg0sCcDRlPL893IPeO+Nt0QqprzFmkw3trcR8Eax7B4Lrt lih/UntqitYAzXh6yiNGz/Bc6i1WJcC/mIixZ+bUabYGAvYGrVA8WpZog4r4/54P VbM7IhCVhgPhGsOg2PYPVzq3pPDbWP5oDlK4OCcbe66amMGWq93I95huiF4X8KRx wJUfga7ICnSADArjG1H0K4yMRM5U8BaJ2HJAZ4UYIshgS88hsviwhPhTTP5ti1xt f/0Fj9ny4xyM3FC5Cmra =evyY -----END PGP SIGNATURE----- --huq684BweRXVnRxX--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |