use numeric pid as the array key.