I am totally new with C.
What are the process items that are inherited in a child created using fork();
?
What are the process items
The only things of child that are different its parent are its
PPID i.e parent process id and
PID process id.
And when it comes to similarity child process inherits its parent's FILE DESCRIPTOR table thus you would see that always three FILE DESCRIPTORS of child are always occupied which correspond to STDIN,STDOUT and STDERR.