Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

parent / child processes

Name: Anonymous 2009-05-01 11:21

Process A creates another process B. Process A then dies, but process B still has the PID of process A marked as its parent process. Later on, a process C starts and is randomly assigned the PID that process A was originally assigned.

Are there any security or other implications of this happening?

Name: Anonymous 2009-05-01 13:40

>>3
PIDs are generated sequentially on *NIX systems and re-start at zero after all numbers have been exhausted. pid_t is 32 bit (or 64 bit on x64 systems). Assume you'd spawn 100000 processes a day, your system would still need to have an uptime of 60 years before the PID generation starts at zero again.

Show me any system that runs for even a year straight and we'll talk about security implications of repeating PIDs again.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List