Properties inherited during fork()

What are the properties inherited by a child process during fork()?
Answer:

Properties inherited:
* open file descriptors
* real uid, real gid, effective uid, effective group id
* process gid
* controlling terminal
* set-user-ID flag and set-group-ID flag
* current working directory
* root dir
* file mode creation mask
* signal mask
* Environment

Differences:
* alarms.
* pending signals.

( selected from Steven Richards, p.192 )

No comments: