Since we communicate the ID and not the key, we can just generate one randomly. Or, rather, to avoid collisions from the randomness, use an incrementing id. But certain ones could still be taken. Maybe just loop and generate new keys until shmget doesn't fail
Since we communicate the ID and not the key, we can just generate one randomly. Or, rather, to avoid collisions from the randomness, use an incrementing id. But certain ones could still be taken. Maybe just loop and generate new keys until
shmget
doesn't fail