X-Spam-Check-By: sourceware.org
Date: Thu, 29 Mar 2007 18:45:06 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: 'kill' cannot see other process but its own PID ?
Message-ID: <20070329164506.GM6306@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20070329085036.GA26240@calimero.vinschen.de> <OFCA5343FD.49F2175A-ONC12572AD.00313E67-C12572AD.00313AAE@philips.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <OFCA5343FD.49F2175A-ONC12572AD.00313E67-C12572AD.00313AAE@philips.com>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Mar 29 10:59, Jurgen Defurne wrote:


http://cygwin.com/acronyms/#TOFU


> Corinna Vinschen <XXXXXXXXXXXXXX@XXXXXX.XXX> 


http://cygwin.com/acronyms/#PCYMTNQREAIYR


>> On Mar 29 09:30, Jurgen Defurne wrote:
>> > Hello,
>> > 
>> > I just discovered that 'kill' is not able to test (-0) for processes
>> > which have been started from the cygwin environment, but
>> > running as another user, in this case as a service (UID = 0).
>> > [...]
>> 
>> Depending on your user rights you might be unable to access the POSIX
>> process information object created by Cygwin processes running in
>> another session.  This is a result of a change starting with Windows
>> 2003 and XP 64 bit.  The current solution in Cygwin is slighlty
>> incorrect but we don't have a nice workaround so far.
>
> Ah, yes, and I am running... (drumroll)
> 
> Windows 2003!
> [...]

I have checked in a patch to Cygwin which tries to workaround this
problem.  As soon as one process has been started by a user which
has the privilege to create global shared memory (SYSTEM, Admins), you
should be able to see all Cygwin processes in all sessions.  Please give
the next Cygwin developer snapshot from http://cygwin.com/snapshots/ a
try.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

