yes, it inherits just about everything:
from man page:
The fork() and fork1() functions create a new  process.  The
     new  process (child process) is an exact copy of the calling
     process (parent process). The  child  process  inherits  the
     following attributes from the parent process:

        o  real user ID, real group ID, effective user ID, effec-
           tive group ID

        o  environment

        o  open file descriptors

        o  close-on-exec flags (see exec(2))

        o  signal handling settings (that is,  SIG_DFL,  SIG_IGN,
           SIG_HOLD, function address)

        o  supplementary group IDs

        o  set-user-ID mode bit

        o  set-group-ID mode bit

        o  profiling on/off status

        o  nice value (see  nice(2))

        o  scheduler class (see priocntl(2))

        o  all attached shared memory segments (see shmop(2))

        o  process group ID -- memory mappings (see mmap(2))

        o  session ID (see exit(2))

        o  current working directory

        o  root directory

        o  file mode creation mask (see umask(2))

> -----Original Message-----
> From: Jessee Parker [mailto:jparker@;presslaff.com]
> Sent: Thursday, October 31, 2002 8:27 PM
> To: [EMAIL PROTECTED]
> Subject: Fork() Question
> 
> 
> I know when you fork() a process the child is a duplicate of 
> the parent, but
> does the forked copy have the same priority and time slice 
> assigned to it or
> is it brand new?
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to