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 14:01

>>8

$ uname -r
2.6.27
$ echo "#include <sys/types.h>
#include <stdio.h>
int main() { printf(\"sizeof(pid_t): %d bit\n\", sizeof(pid_t) * 8); }" | gcc -xc -o test - && ./test
sizeof(pid_t): 32 bit

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