| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| 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 |
| Message-ID: | <2da66eca04092222055f9bdc75@mail.gmail.com> |
| Date: | Thu, 23 Sep 2004 15:05:11 +1000 |
| From: | Mailing List <mailingster AT gmail DOT com> |
| Reply-To: | Mailing List <mailingster AT gmail DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Blocking accept() broken? |
| Mime-Version: | 1.0 |
| X-IsSubscribed: | yes |
G'day
In Linux, if I call accept(socket_fd, ....); it will block until
there is a connection attempt to that socket.
In Cygwin, even after writing code to ensure it is blocking*, it acts
in a non-blocking manner. I've looked around and can find no
explaination for this, so I'm just wondering if anyone has any
possible solution?
Thanks
* The code I used to force blocking was:
/* Set our listen socket blocking */
flags = fcntl(listenfd, F_GETFL, 0);
flags = flags & ~FNDELAY; /* Turn blocking on */
fcntl(listenfd, F_SETFL, flags);
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |