On Thursday 06 March 2008, Renaud Lottiaux wrote:
> + /* Get an new IPC resource key. Since there is a small chance the
> + * getipckey() function returns the same key as the previous one,
> + * loop until we have a different key.
> + */
> + do {
> + shmkey2 = getipckey();
> + } while (shmkey2 == shmkey);you should have some sort of sanity check in there ... after 10k (or some other obscene count) tries, abort ... -mike
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
