From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11312 invoked by alias); 19 Mar 2002 18:00:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 11218 invoked from network); 19 Mar 2002 18:00:22 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 19 Mar 2002 18:00:22 -0000 Received: from cgf.cipe.redhat.com (cgf.cipe.redhat.com [10.0.1.172]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g2JI0LY17816 for ; Tue, 19 Mar 2002 13:00:21 -0500 Received: (from cgf@localhost) by cgf.cipe.redhat.com (8.11.6/8.8.7) id g2JI0HY16746 for cygwin@cygwin.com; Tue, 19 Mar 2002 13:00:17 -0500 Date: Tue, 19 Mar 2002 10:49:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: cygwin 1.3.10: kill gives spurious Not owner Message-ID: <20020319180017.GB16436@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <002301c1c394$f2c00090$dc37500a@midaskapiti.com> <20020304191012.GE14103@redhat.com> <00be01c1c5ec$eafce300$dc37500a@midaskapiti.com> <20020307160816.GF10147@redhat.com> <01ee01c1cf69$2095abc0$dc37500a@midaskapiti.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 X-SW-Source: 2002-03/txt/msg01043.txt.bz2 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/