delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/04/04:47:48

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A03DB2A.4C68B5A4@cygnus.com>
Date: Sat, 04 Nov 2000 10:47:22 +0100
From: Corinna Vinschen <vinschen AT cygnus DOT com>
Reply-To: cygwin AT sources DOT redhat DOT com
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16 i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: cygwin <cygwin AT sources DOT redhat DOT com>
Subject: Re: debugging rshd
References: <20001104001409 DOT 54126 DOT qmail AT web10707 DOT mail DOT yahoo DOT com>

Mike Ayers wrote:
>     I'm having trouble with rshd and I'd like to debug the problem.
> Before I go delving into inetd.c, could someone perhaps tell me how to
> start in.rshd under gdb?  I tried setting up inetd.conf as:
> 
> shell   stream   tcp   nowait   root   /usr/bin/gdb
> /usr/local/libexec/in.rshd -L

You will have no luck that way. rshd expects the already opened socket
connection on stdin/stdout/stderr. This is what inetd does for it's
child processes. rshd isn't intended as a stand-alone daemon.

On the other hand: What problems do you encounter? Are you using
the latest version (1.3.2-8)? It contains a fix for rshd which avoids
a possible crash on startup.

>     ...specifically, "<server_path> <args>" appears to get
> "/usr/sbin/in.rshd in.rshd -L", which seems more like "<server_path>
> <server_name> <args>" to me.  

That's the same. `args' begins counting with 0.

> Are we supposed to be handing the
> executable its own name?

You may do this. Some applications work different when they are
started with another argv[0]. `rsh' for example expects to be named
`rsh' (aka argv[0] == "rsh"). Otherwise it treats argv[0] as the
name of the host it should connected to.

Corinna

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

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