This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: getpid() problems
- To: "gnu-win32 at cygnus dot com" <gnu-win32 at cygnus dot com>, "'assini at kamus dot it'" <assini at kamus dot it>
- Subject: RE: getpid() problems
- From: Sergey Okhapkin <sos at prospect dot com dot ru>
- Date: Sun, 23 Feb 1997 12:40:19 +0300
- Encoding: 20 TEXT
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@cygnus.com" with one line of text: "help".