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 Mime-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: A good PID value Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk 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 / \ /-_-_-_-_-_-_/