X-Spam-Check-By: sourceware.org
In-Reply-To: <20070329085036.GA26240@calimero.vinschen.de>
To: cygwin@cygwin.com
Subject: Re: 'kill' cannot see other process but its own PID ?
MIME-Version: 1.0
X-Mailer: Lotus Notes Release 6.0.3 September 26, 2003
From: Jurgen Defurne <jurgen.defurne@philips.com>
Message-ID: <OFCA5343FD.49F2175A-ONC12572AD.00313E67-C12572AD.00313AAE@philips.com>
Date: Thu, 29 Mar 2007 10:59:03 +0200
Content-Type: text/plain; charset="US-ASCII"
X-IsSubscribed: yes
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

Ah, yes, and I am running... (drumroll)

Windows 2003!

Thanks. Then I need to implement my functionality the
hard way.

Regards,

Jurgen









Corinna Vinschen <corinna-cygwin@cygwin.com> 
Sent by:
cygwin-owner@cygwin.com
2007-03-29 10:50 AM
Please respond to
cygwin@cygwin.com


To
cygwin@cygwin.com
cc

Subject
Re: 'kill' cannot see other process but its own PID ?
Classification







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).
> 
> Is this a problem stemming from the cygwin environment
> or is it due to Windows itself ?
> 
> As a workaround, it seems only parsing the output from
> 'ps -Wl' could give me the desired functionality, which
> is testing if a certain process, of which the PID is known,
> is still running or not.
> 
> Does anyone have maybe other ideas I might have
> missed ?

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.


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/




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

