How do I know my Q-KEY is unique ?
Jon W{tte
d88-jwa at nada.kth.se
Sun Sep 24 20:26:09 AEST 1989
In article <1196 at virtech.UUCP> cpcahil at virtech.UUCP (Conor P. Cahill) writes:
>In article <1747 at draken.nada.kth.se>, d88-jwa at nada.kth.se (Jon W{tte) writes:
> 1. have the initial process obtain a "private" IPC and write the
> IPC id into a file that is read by all other programs using the
> IPC. Note that this is better than selecting an unused key
> because you don't have to hunt around.
But getting a (process-) "private" key, and then using it in a non-private
manner is strictly against my style and image as programmer :-)
> 2. Use a control file that has the specified key.
> 3. #2 but allow for an override by an environment variable.
I now strongly cosider having the make file hunt down an unused
key, and save it in a configuration file. Override in an environment
variable isn't a bad idea at all; this would allow for multiple games
(Good on very large, very game-oriented systems, i.e. universitys :-)
Happy hacking !
h+ at nada.kth.se
--
Life's a bitch, then you die.
More information about the Comp.unix.wizards
mailing list