delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/02/15:31:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Delivered-To: corinna-cygwin AT cygwin DOT com
Message-ID: <20030402202056.26362.qmail@web21205.mail.yahoo.com>
Date: Wed, 2 Apr 2003 12:20:56 -0800 (PST)
From: gavin bowlby <gavin_bowlby AT yahoo DOT com>
Subject: Re: 1.3.20 : getpgid returns pid != -1 when specified pid no longer exists
To: cygwin AT cygwin DOT com, corinna-cygwin AT cygwin DOT com
MIME-Version: 1.0

Corinna:

Thanks for your suggestion. Sorry I didn't upgrade
before reporting this problem. I still see the same
problem with 1.3.22.

Here's a console log:

From the parent's perspective: (parent program name is
"pglm" parent's pid=1940, child's program name is
"pglm", child's pid=1624)

getpgid of child pid:1624 returned pid:1940


==============================================
A ps command from another Cygwin shell shows:

gavin AT reptilicus /cygdrive/c/cadzilla/pglm
$ ps
      PID    PPID    PGID     WINPID  TTY  UID   
STIME COMMAND
     1232       1    1232       1232  con 1003
11:56:48 /usr/bin/bash
     1964       1    1964       1964  con 1003
11:57:54 /usr/bin/bash
     1940    1232    1940        948  con 1003
12:03:35 /cygdrive/c/cadzilla/pgl
m/pglm
     1624    1940    1940       1624  con 1003
12:03:35 /cygdrive/c/cadzilla/pgl
m/pglm
     1724    1964    1724        732  con 1003
12:03:52 /usr/bin/ps

gavin AT reptilicus /cygdrive/c/cadzilla/pglm
$ kill -9 1624

gavin AT reptilicus /cygdrive/c/cadzilla/pglm
$ ps
      PID    PPID    PGID     WINPID  TTY  UID   
STIME COMMAND
     1232       1    1232       1232  con 1003
11:56:48 /usr/bin/bash
     1964       1    1964       1964  con 1003
11:57:54 /usr/bin/bash
     1940    1232    1940        948  con 1003
12:03:35 /cygdrive/c/cadzilla/pgl
m/pglm
     2092    1964    2092       1504  con 1003
12:04:32 /usr/bin/ps
===================================================

After the kill -9 1624 is issued, the running parent
process continues to output:

getpgid of child pid:1624 returned pid:1940

after calls to getpgid with a pid of 1624.


gavin AT reptilicus /cygdrive/c/cadzilla/pglm
$ uname -a
CYGWIN_NT-5.0 reptilicus 1.3.22(0.78/3/2) 2003-03-18
09:20 i686 unknown unknown
Cygwin


Thanks again for your help,
Gavin Bowlby
(gavin_bowlby AT yahoo DOT com)

======================================================
On Tue, Apr 01, 2003 at 07:06:45PM -0800, gavin bowlby
wrote:
> $ uname -a
> CYGWIN_NT-5.0 reptilicus 1.3.20(0.73/3/2) 2003-02-08
> 12:10 i686 unknown unknown
> Cygwin

Could you test with 1.3.22 please?

Corinna

-- 
Corinna Vinschen                  Please, send mails
regarding Cygwin to
Cygwin Developer                               
mailto:cygwin at cygwin dot com
Red Hat, Inc.

--- gavin bowlby <gavin_bowlby AT yahoo DOT com> wrote:
> $ uname -a
> CYGWIN_NT-5.0 reptilicus 1.3.20(0.73/3/2) 2003-02-08
> 12:10 i686 unknown unknown
> Cygwin
> 
> Windows 2K box.
> 
> Process A creates Process B.
> 
> I kill Process B with a "kill -9 <process B's pid>"
> 
> Process A then does a:
> 
> sid = getpgid(pid));
> 
> pid is set to process B's pid
> 
> sid is not returned as -1, even though process B no
> longer exists, as can be seen with a "ps" command.
> This occurs repeatedly.
> 
> Is this correct behavior?
> 
> Regards,
> 
> Gavin Bowlby
> 
> gavin_bowlby AT yahoo DOT com
> 
> 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms,
> and more
> http://tax.yahoo.com
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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

- Raw text -


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