This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
socket() function fails when application runs as an NT service.
- From: Tom Cashmore <Tom dot Cashmore at mindbox dot com>
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Sun, 15 Sep 2002 22:24:53 -0700
- Subject: socket() function fails when application runs as an NT service.
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
--
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/