delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/16/02:40:53

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 16 Sep 2002 02:40:43 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Tom Cashmore <Tom DOT Cashmore AT mindbox DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: socket() function fails when application runs as an NT service.
In-Reply-To: <FADA9107FA9E3E4AAA60915DFAAD617ACBFAD4@mbhqmail.mindbox.com>
Message-ID: <Pine.GSO.4.44.0209160238580.21486-100000@slinky.cs.nyu.edu>
MIME-Version: 1.0

On Sun, 15 Sep 2002, Tom Cashmore wrote:

>   Hi im having a strange problem with an application im writing using cygwin
> (v1.3.12-1 On win2k Sp3). If the application is run as a console app (Ie
> started from a cmd window) its able to open sockets (socket function returns
> a valid handle)  but when the application is run as an NT service it is
> unable to succesfuly open sockets (Ie the socket function returns 0). Even
> if i place a socket function before the call to StartServiceCtrlDispatcher
> the socket function will still return a 0. This happens with the service
> running as both system and local admin. Im pretty much stumped and am hoping
> that someone else may have been able to resolve this problem in the past.
> Any help would be greatly appreciated. Thank you.
>
>   Tom Cashmore

The standard services, such as sshd, seem to be handling sockets on a
daily basis.  Perhaps there's a hint in the source of sshd?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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