delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Subject: | RE: accept() blocking |
MIME-Version: | 1.0 |
Date: | Thu, 10 Aug 2000 10:04:12 +1000 |
content-class: | urn:content-classes:message |
X-MimeOLE: | Produced By Microsoft Exchange V6.0.4368.4 |
Message-ID: | <8600BF007197944F8DD3906E40CB42809060@itdomain001.itdomain.net.au> |
Thread-Topic: | accept() blocking |
Thread-Index: | AcACHRWlUiu/Q91lQE+AcWT+MfBMlgAP+GJQ |
From: | "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au> |
To: | "Matt Minnis" <mminnis AT prefres DOT com>, <cygwin AT sourceware DOT cygnus DOT com> |
Cc: | <cygwin AT sourceware DOT cygnus DOT com> |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id UAA06537 |
Matt, as per my previous response.. http://sources.redhat.com/ml/cygwin/2000-08/msg00315.html there is a workaround... http://sources.redhat.com/ml/cygwin-apps/2000-06/msg00044.html I haven't had time to look at checking the flags in the fcntl call and calling ioctl for non-blocking and related things (I'm not even sure that would be the best way to hadnle this - Comments anyone?) so I believe you have two choices to solve your problem .. work around it or submit a patch for cygwin1.dll Rob > -----Original Message----- > From: Matt Minnis [mailto:mminnis AT prefres DOT com] > Sent: Thursday, 10 August 2000 2:15 AM > To: cygwin AT sourceware DOT cygnus DOT com > Cc: cygwin AT sourceware DOT cygnus DOT com > Subject: accept() blocking > > > I am having a problem. I am using cygwin 1.1.3 > > With a telnet socket opened as: > > *fd = socket(AF_INET,SOCK_STREAM,0); > > fcntl(*fd, F_SETFL, O_NONBLOCK); > > When I call accept(.....) like: > > int *status = malloc(sizeof(int)); > *status = accept(*fd, NULL, 0); > > The program will sit and wait for a telnet session to connect. If a > session is already connected, it will do the NONBLOCK like it > is supposed to. > > Thanks, > > Matt > > > Cthulhu for President. Why settle for a lesser evil? > > ========================================================= > Preferred Resources (314) 567-7600 phone > 701 Emerson rd. (314) 993-6699 fax > Suite 475 mminnis AT prefres DOT com > St. Louis, MO > 63141 > ========================================================= > > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |