delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/02/23/03:54:49

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: getpid() problems
23 Feb 1997 03:54:49 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <01BC2186.BDE00240.cygnus.gnu-win32@sos>
Original-To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>,
"'assini AT kamus DOT it'"
<assini AT kamus DOT it>
Encoding: 20 TEXT
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Pasqualino Assini wrote:
> I tried the getpid() function under winNT 4.0 using beta 17.1
> 
> The problem is that the pid that getpid() returns it's not the same as
> that shown by the Task Manager.
> 
> Any suggestion ?

Cygwin.dll maintains its own process table.

> 
> By the way, does anyone know how to check if a process with a given pid
> is alive ?

If You are interesting in cygwin's pid, you may use ps command from cygnus package. Pipe ps output to awk input.

-- 
Sergey Okhapkin
Moscow, Russia
Looking for a job

-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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