Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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/