delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/03/05:32:11

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: <39893BF4.323CB21B@cygnus.com>
Date: Thu, 03 Aug 2000 11:31:32 +0200
From: Corinna Vinschen <vinschen AT cygnus DOT com>
X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.14-SMP i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: norbert DOT bladt AT www DOT usa DOT net
CC: cygwin AT sources DOT redhat DOT com, dumser AT bigfoot DOT com
Subject: Re: OpenSSH as a service (Was: OpenSSH through inetd)
References: <20000803083719 DOT 29790 DOT qmail AT nwcst277 DOT netaddress DOT usa DOT net>

norbert DOT bladt AT www DOT usa DOT net wrote:
> The question is: How do I get the pid of the still running old sshd ?
> The PID is written in the "PidFile" given in the sshd_config.
> However, the problem in 2.1.0p3 is, again, the "CRLF" at the
> end of this file. So, I can't use it, at all to kill the sshd
> via
>         kill -9 `cat /var/run/sshd.pid`
> Neither "echo" nor "cat" work because of the CRLF.
> Is that fixed in 2.1.1p4 ?

No and it will remain that way for a while. I'm still hoping
to get Cygwin support merged in the portable OpenSSH sources
main tree. If that is the case, I'm able to get smaller patches
checked in easier. Let's name it political.

Personally I have a simple script which reads the pid's from
ps output and kills all sshd then:

====================================
#!/bin/sh
net stop sshd >/dev/null 2>&1
PID=`ps -e | awk '/sshd/{print $1}'`
if [ -n "${PID}" ]
then
  kill -9 $PID
fi
====================================

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