Worker process number

hi all

is there a way to get a unique index of the current worker process via a
variable? (e.g. 0,1,2,3 for 4 workers)

i want to use it as a memcache prefix, therefore i cannot use $pid
because this changes upon restart.

any clues, thx

Posted at Nginx Forum: