Path: utzoo!attcan!uunet!bloom-beacon!eru!luth!sunic!draken!d88-jwa From: d88-jwa@nada.kth.se (Jon W{tte) Newsgroups: comp.unix.wizards Subject: Re: How do I know my Q-KEY is unique ? Keywords: msg queue, queue, message queue, ID Message-ID: <1750@draken.nada.kth.se> Date: 24 Sep 89 10:26:09 GMT References: <1747@draken.nada.kth.se> <1196@virtech.UUCP> Reply-To: d88-jwa@nada.kth.se (Jon W{tte) Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 24 In article <1196@virtech.UUCP> cpcahil@virtech.UUCP (Conor P. Cahill) writes: >In article <1747@draken.nada.kth.se>, d88-jwa@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+@nada.kth.se -- Life's a bitch, then you die.