This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin 1.3.10: kill gives spurious Not owner


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]