Platform: suse Linux
Goal: print the basic information for parent process and child process
Steps:
compile and execute it.
Characteristic:
Two additional exit(0) are added into this program
Result:
system status information:
current process information:
pid: 30269
parent pid: 29390
user id: 73561
valid user id: 73561
group id: 16342
valid group id: 16342
end
a write to stdout
before fork
child process information:
current process information:
pid: 30270
parent pid: 30269
user id: 73561
valid user id: 73561
group id: 16342
valid group id: 16342
end
before