server: make the pids/tids somewhat random (fixes bug #9970)

Mikolaj Zalewski mikolajz at google.com
Thu Oct 11 15:31:32 CDT 2007


OPAS uses the pid/tid to generate the first four letters of temp
filenames. The other four letters are generated sequentially. If it is
killed it doesn't remove many of the temp files and if there are too
many conflicts when trying to create a new filename, it fails to
start. The randomization in this patch is not very sophisticated but
still gives 2048 combinations of a pid/tid of the first process. The
patch will make debugging a bit less pleasant but there may be more
applications depending on this.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-server-make-the-pids-tids-more-random.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20071011/e7735a2c/attachment.txt 


More information about the wine-patches mailing list