delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/20/11:16:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <779F20BCCE5AD31186A50008C75D9979171736@silldn_mail1.sanwaint.com>
From: "Fifer, Eric" <EFifer AT sanwaint DOT com>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: inetd problems
Date: Tue, 20 Jun 2000 16:13:55 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

I was having a couple problems with inetd in the latest
inetutils-1.3.2-4.  Below is a patch that works around
my problems.

First, I wasn't able to start inetd with debugging because
some service manager code needed to be skipped over.

Second, after running "inetd --install-as-service", in
the Services Manager for "CYGWIN inetd", "System Account" was
selected and *everything* was greyed out (so I couldn't
change it to another account).  Although inetd started
up, all attempts to start a subprocess failed with
"fork: No more processes" (from the Event Viewer).
And, I needed to start it up with a different Account
that has permissions to access some remote drives.

I think what I observed is related to my account
being in the Administrators group, but I do not have
access to the Administrator account.  The switch
to SERVICE_WIN32_OWN_PROCESS allowed me to do what
I want.

Has anyone else seen this?

Thanks.

Eric Fifer

diff -ur inetutils-1.3.2.orig/inetd/inetd.c inetutils-1.3.2/inetd/inetd.c
--- inetutils-1.3.2.orig/inetd/inetd.c	Tue May 23 10:46:13 2000
+++ inetutils-1.3.2/inetd/inetd.c	Thu Jun 15 10:26:12 2000
@@ -379,7 +379,7 @@
                                  SERVICE_QUERY_STATUS |
                                  SERVICE_START |
                                  SERVICE_STOP,
-                                 SERVICE_WIN32_SHARE_PROCESS |
+                                 SERVICE_WIN32_OWN_PROCESS |
                                  SERVICE_INTERACTIVE_PROCESS,
                                  SERVICE_AUTO_START,
                                  SERVICE_ERROR_NORMAL,
@@ -600,7 +600,7 @@
 	char buf[50];
 
 #ifdef __CYGWIN__
-        if (is_winnt) {
+        if (is_winnt && debug == 0) {
             pid_t server_pid;
 
             openlog("inetd", LOG_PID | LOG_NOWAIT, LOG_DAEMON);

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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