On Wed, 24 Jun 1998, Glynn Clements wrote:

->
->Marin D wrote:
->
->> To get the simulator's PID :
->> 
->> Add a call to getpid() before u call the exec().
->> It will return u your process' PID which is unchanged during the exec()
->> call. 

->
->There isn't much point in this; once you actually call exec(), you're
->going to be running a completely different program.
->

Yep. But the PID could be persistently stored (in a way the author
choses).

Quite ugly but at least u may be sure which XXXXX.YYY file is from your
last program execution.

        Marin


          -= Why do we need gates in a world without fences? =-


Reply via email to