delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/19/13:38:36

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 19 Mar 2002 13:00:17 -0500
From: Christopher Faylor <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin 1.3.10: kill gives spurious Not owner
Message-ID: <20020319180017.GB16436@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <002301c1c394$f2c00090$dc37500a AT midaskapiti DOT com> <20020304191012 DOT GE14103 AT redhat DOT com> <00be01c1c5ec$eafce300$dc37500a AT midaskapiti DOT com> <20020307160816 DOT GF10147 AT redhat DOT com> <01ee01c1cf69$2095abc0$dc37500a AT midaskapiti DOT com>
Mime-Version: 1.0
In-Reply-To: <01ee01c1cf69$2095abc0$dc37500a@midaskapiti.com>
User-Agent: Mutt/1.3.23.1i

On Tue, Mar 19, 2002 at 05:11:36PM -0000, Stephen Osborn wrote:
>So the relevant script is now:
>QUOTE
>#!/bin/bash
>
>java -server -classpath
>"./formattest.jar;$MERIDIAN_CLASSPATH" -Dmeridian.home="$MERIDIAN_HOME"
>com.misys.meridian.runtime.server.StartServer formattest -logToScreen
>UNQUOTE
>
>However after all processing has stopped (I have suppressed the kill
>statements) ps yields:
>
>      PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
>      477       1     477        477  con 1006 15:03:10 /usr/bin/bash
>      457       1     386        380  con 1006 16:53:05 /usr/bin/sh
>      337     457     386        337  con 1006   Jan  1
>/cygdrive/d/jdk1.3/bin/java
>      453     386     386        448  con 1006 16:54:36 /usr/bin/ps
>
>I have scanned all of my scripts and /bin/sh does not appear in any of them.
>
>Any ideas as to how a bash process can appear as a sh process?

Nope.

>From a bash window, I can kill the /bin/sh process (457 above).  This does
>not terminate the java process (337 above) that was spawned from the /bin/sh
>process.

Yep, that's a side effect of /bin/sh's use of vfork.

>Also, from a bash window if I try to kill the java process I continue
>to get a Not owner message.

And, I explained why that is the case.  java isn't a cygwin process.

cgf

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