public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: jmm@raleigh.ibm.com
To: cygwin@sourceware.cygnus.com
Subject: pid problem found
Date: Sun, 28 Feb 1999 23:02:00 -0000	[thread overview]
Message-ID: <199902080327.WAA24699@jmm.raleigh.ibm.com> (raw)
Message-ID: <19990228230200.WevJS2wpd0VuC5oLF4jp-QaxWZSGCtQiTK1MzD11Nm8@z> (raw)

Ok, this may still be a B20.1 problem, but I'm definitely more shaky
about it now.  It turns out that after CreateProcess, the returned
PROCESS_INFORMATION structure has a dwProcessId entry that's usally
between 3 to 5 times the value of the real pid.

for instance, the spawned child's real PID will be 1070, but 
the dwProcessId will give 3919... the next run, real PID is 1072, 
but dwProcessId gives 4663, a third time real is 1075, dwProcessId
returns 3033.

(I've been using dwProcessId to save the pid for later waitpid() calls,
which now explains why those were failing)

I'm sorry to send to the list so much, but I've tried dejanews, web
searches, irc channels, NT programming books and have gotten stuck :(

Thanks for your help and patience,

James Manning
-- 
Hardware Design Engineer --- IBM Netfinity Performance Development

--   
Want to unsubscribe from this list?                             
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


             reply	other threads:[~1999-02-28 23:02 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-07 19:27 jmm [this message]
     [not found] ` < 199902080327.WAA24699@jmm.raleigh.ibm.com >
1999-02-07 20:09   ` Christopher Faylor
1999-02-28 23:02     ` Christopher Faylor
1999-02-08  6:22 ` John Mullee
     [not found]   ` < 36BEF2B3.4A3B0C4C@exmachina.net >
1999-02-08  6:31     ` jmm
     [not found]       ` < 199902081430.JAA25094@jmm.raleigh.ibm.com >
1999-02-08  6:40         ` Christopher Faylor
     [not found]           ` < 19990208093853.A24123@cygnus.com >
1999-02-08  6:43             ` jmm
     [not found]               ` < 199902081443.JAA25182@jmm.raleigh.ibm.com >
1999-02-08  6:48                 ` Christopher Faylor
     [not found]                   ` < 19990208094644.A24171@cygnus.com >
1999-02-08  6:59                     ` jmm
     [not found]                       ` < 199902081459.JAA25236@jmm.raleigh.ibm.com >
1999-02-08  7:06                         ` Christopher Faylor
1999-02-28 23:02                           ` Christopher Faylor
1999-02-28 23:02                       ` jmm
1999-02-28 23:02                   ` Christopher Faylor
1999-02-28 23:02               ` jmm
1999-02-28 23:02           ` Christopher Faylor
1999-02-08  6:47       ` John Mullee
1999-02-28 23:02         ` John Mullee
1999-02-28 23:02       ` jmm
1999-02-28 23:02   ` John Mullee
1999-02-28 23:02 ` jmm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199902080327.WAA24699@jmm.raleigh.ibm.com \
    --to=jmm@raleigh.ibm.com \
    --cc=cygwin@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).