delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/03/19/03:07:02

Sender: vheyndri AT rug DOT ac DOT be
Message-Id: <3510D21A.2B9C@rug.ac.be>
Date: Thu, 19 Mar 1998 09:06:50 +0100
From: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>
Mime-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: A good PID value

Hi workers,

I want you to know that I have a modified version of getpid() than works
100% reliable on Win3.1enh, Win95, and non-multitasking flavors of DOS.
I followed the suggestion of B.C. It's a 32-bit value and includes the
VM ID and real mode PSP-segment.
I think I could also make it 100% reliable on Win2.0 + 386 (enfin,
Windows in standard mode), but it needs some (a small fragment of) code
run in real-mode (it's difficult to do otherwise). Could this code
become part of the stub? }:-| Since a PID normally gets assigned by a
decent OS, it seems the closest way to emulate that. 
Or do we forget about non-enhanced flavors of Win?

Also: I don't know for sure whether it will work perfectly reliable on
NT or OS/2, so somebody should try to find that out.

I'll send the patch shortly, followed by a better set of temporary file
name creation functions.

-- 
 \ Vik /-_-_-_-_-_-_/   
  \___/ Heyndrickx /          
   \ /-_-_-_-_-_-_/

- Raw text -


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