From dick@csci.csusb.edu  Fri May 21 17:49:49 1999
Received: from silicon.csci.csusb.edu (root@[139.182.38.1])
	by swi.swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id RAA24899
	for <prolog@swi.psy.uva.nl>; Fri, 21 May 1999 17:49:48 +0200 (MET DST)
From: dick@csci.csusb.edu
Received: from blaze.csci.csusb.edu (blaze.csci.csusb.edu [139.182.38.10])
	by silicon.csci.csusb.edu (8.9.1a/8.9.1) with ESMTP id IAA01324;
	Fri, 21 May 1999 08:48:09 -0700 (PDT)
Received: by csci.csusb.edu id IAA20240; Fri, 21 May 1999 08:40:08 -0700 (8.9.1 Berkeley Sendmail)
Date: Fri, 21 May 1999 08:40:08 -0700
Message-Id: <199905211540.IAA20240@csci.csusb.edu>
To: Piet.Mertens@arts.kuleuven.ac.be, prolog@swi.psy.uva.nl
Subject: Re:  get PID

Piet Mertens <Piet.Mertens@arts.kuleuven.ac.be> asked
< Is there a way to get the PID (process identification number)
< in SWI prolog, as with the getpid() function in C ?
< I need to create unique filenames; I considered tmp_file/2,
< but these files are removed on exit.
< 

I have some non-Prolog worries about this.  If the
files are left behind.... when will they be removed?
I conclude that the user must be told about them.
So these files will be known to the
user of the program.  Perhaps they should be given a
name that make sense.   Perhaps a serial number or
a date/time stamp might help the user more than
a meaningless number.

Hope this helps.

