Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <00b801c000ba$25ef2300$f7c723cb@lifelesswks>
From: "Robert Collins" <robert.collins@itdomain.com.au>
To: "Markus Hoenicka" <Markus.Hoenicka@uth.tmc.edu>,
        <cygwin@sourceware.cygnus.com>, "Matt Minnis" <mminnis@prefres.com>
References: <4.3.2.7.2.20000807144143.021f5e10@mail.prefres.com>
Subject: Re: accept() fails in service, succeeds in standalone app
Date: Tue, 8 Aug 2000 07:55:04 +1000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.3018.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
X-OriginalArrivalTime: 07 Aug 2000 21:47:29.0781 (UTC) FILETIME=[159B1A50:01C000B9]

If you look in the archives on the cygwin-apps mail list, Corinna Vinschen
sent a mail out with code to set a socket FD nonblocking. The fcntrl call
with non-blocking doesn't currently set the FD to non-blocking.

Rob

----- Original Message -----
From: "Matt Minnis" <mminnis@prefres.com>
To: "Markus Hoenicka" <Markus.Hoenicka@uth.tmc.edu>;
<cygwin@sourceware.cygnus.com>
Sent: Tuesday, August 08, 2000 5:54 AM
Subject: Re: accept() fails in service, succeeds in standalone app


> I ran into this same issue.
>
> The accept() call waits for input of some sort.
>
> I have a program that opens a Telnet server session and then gets stuck at
> the accept() call.
> If I telnet to it, it will then continue.
>
> Kinda anoying.
>
> I am on Win2000, running Cygwin 1.13
>
> Thanks,
>
> Matt
>
>
> At 07:40 PM 8/7/2000 +0000, Markus Hoenicka wrote:
> >Hi all,
> >
> >I came across this weird problem in my first attempt whatsoever to run
> >some homegrown code as a WinNT4 service. The app is a simple server
> >that handles client requests with the bind/listen/select/accept
> >functions. This runs all fine and handles client requests nicely as
> >long as I run this as a standalone application. I can install this
> >application as a service using invkr153.zip (http://www.idetix.com)
> >and it starts without problems. But when I try to connect to the server
> >(now running as a service), accept fails with errno 14 (bad address).
> >
> >Has anyone else seen this? Is this a Cygwin issue or a NT issue? Are
> >there specific requirements for Cygwin apps to run successfully as a
> >service?
> >
> >I'm running B20.1 on WinNT4 SP 5.
> >
> >Any help is greatly appreciated.
> >
> >Markus
> >
> >--
> >Markus Hoenicka, PhD
> >UT Houston Medical School
> >Dept. of Integrative Biology and Pharmacology
> >6431 Fannin MSB4.114
> >Houston, TX 77030
> >(713) 500-6313, -7477
> >(713) 500-7444 (fax)
> >Markus.Hoenicka@uth.tmc.edu
> >http://ourworld.compuserve.com/homepages/hoenicka_markus/
> >
> >
> >--
> >Want to unsubscribe from this list?
> >Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>
> 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@prefres.com
> St. Louis, MO
> 63141
> =========================================================
>
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

