Note:
turnstep mentioned that one may want to put an "or die" on the flock calls.
With the method Iam calling flock, the program will "hang" or wait for the lock on the file.
I prefer this, some ppl dont, so its up to you. Being as this is only example code I oped not to
change the orignal version :)
But do what you will.
Note(2):
turnstep yet agian mentioned my failing with flock, being
that files are never a constent, so It is a very good thing to
a an "or die" to each of the flock calls. for more information
consult your systems man page on flock :)
lindex
/****************************/
jason@gost.net, wh@ckz.org
http://jason.gost.net
/*****************************/