delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/19/10:27:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Tue, 19 Aug 2003 09:24:34 -0500
From: help-octave-request AT bevo DOT che DOT wisc DOT edu
Message-Id: <200308191424.h7JEOYdm030222@bevo.che.wisc.edu>
X-Authentication-Warning: bevo.che.wisc.edu: list set sender to help-octave-request AT bevo DOT che DOT wisc DOT edu using -f
To: cygwin AT cygwin DOT com
Subject: Re: accept() doesn't block while running as NT service
References: <1683 DOT 212 DOT 0 DOT 200 DOT 22 DOT 1061299847 DOT mtc AT mail DOT moldtelecom DOT md> <20030819142253 DOT GN3101 AT cygbert DOT vinschen DOT de>
In-Reply-To: <20030819142253.GN3101@cygbert.vinschen.de>
X-Loop: help-octave AT bevo DOT che DOT wisc DOT edu

Your message has been received, but you are not subscribed to the
help-octave mailing list using the address from which you sent your
mail, so your message will not be posted automatically.

If the list moderator decides your message is appropriate for the
purposes of the list, then it will be posted.

--
On Tue, Aug 19, 2003 at 04:30:47PM +0300, linamat AT moldtelecom DOT md wrote:
> I have a problem with accept() on TCP socket. Al things works well when I
> start the program under .\\Administrator credentials, but fails in NT
> service.
> 
> {
>  struct sockaddr_in sa;
>  int sa_len = sizeof sa;
> 
>   for (;;) {
> 
>     t = accept(s,(struct sockaddr *)&sa,&sa_len);
> 
>     if (t == -1) continue;
> 
> // working with client....
>     .......
>    }
> }
> 
> It returns -1 and enters in infinite loop.
> I've tried such with UNIX socket and it behaved normally.
> Can you explain me why?

No.  No details, no explanation.  Debugging could help.  And reading
http://cygwin.com/problems.html, probably.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
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/


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019