delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/17/21:41:19

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Sat, 17 Mar 2001 21:41:07 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: bug report - kill f || plea for help
Message-ID: <20010317214107.A23324@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <012901c0af49$6bae6ac0$0200a8c0 AT lifelesswks>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <012901c0af49$6bae6ac0$0200a8c0@lifelesswks>; from robert.collins@itdomain.com.au on Sun, Mar 18, 2001 at 12:19:02PM +1100

On Sun, Mar 18, 2001 at 12:19:02PM +1100, Robert Collins wrote:
>Should this work ?
>
>administrator AT LIFELESSWKS ~
>$ ps
>      PID    PPID    PGID     WINPID TTY  UID    STIME COMMAND
>     2916       1    2916       2916  -1  500 12:10:20 /usr/bin/bash
>     1924       1    1924       1924  -1  500 12:10:21
>/usr/bin/ssh-agent
>     2480    2916    2480       2140  -1  500 12:10:22 /usr/bin/ps
>
>administrator AT LIFELESSWKS ~
>$ kill f 1924
>bash: kill: f: no such pid
>
>I ask because I grabbed the code for using cygwin_external from the kill
>utility, and was a little surprised when it failed to give me data... I
>tracked it back to the functions in external.cc on a debug build of
>cygwin.

I don't understand.  Why would you expect 'f' to mean anything?  If
I do "kill f" on linux I get:

    % kill f
    kill: illegal pid: f

I think you probably mean 'kill -f'.

Hmm. That seems to be broken currently.

>So then I tried kill f .... which didn't work.
>
>before you ask for patchs.... I'm offering one :] But not for this
>function :[
>
>I'm a little lost here in the guts of cygwin, I'd _really_ appreciate a
>pointer -
>
>What I coding is within the cygwin dll, I need to end up with
>(preferrably) a filled out pinfo struct for a passed pid. Doing it for
>the current process is easy enough, but how do I retrieve the info for
>other processes?

It's pretty simple:

      pinfo p (pid);

>The external_pinfo struct contains what I need, so if it's easier to get
>that that, that's fine (and thats why I grabbed the code from kill).

The external_pinfo struct is intended for external use.  It's not
intended to be called from inside cygwin.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019