Chetan Sakhardande wrote:
> ) If a process cannot change anothers data structures, how does a job
> control shell make its child a proces grp leader ?
A process group leader is a process for which
getpgid() == getpid()
Consequently, you can make a process a process group leader with
setpgid(pid, 0);
A process can make itself a process group leader with
setpgid(0, 0);
or
setpgrp();
> 2) In select system call, when is an fd ready for writing ?
When a call to write(fd, ...) won't block.
> 3) WHEN INETD FORKS A CHILD(SERVER) FOR A REQUEST, HOW DOES IT DO SETUID
> AND SETGID FO THE NEW SERVER PROCESS THAT IT JUST FORKED(I.E. HOW DOES IT
> KNOW WHICH UID TO SET TO )
The uid/gid are specified in the fifth column of /etc/inetd.conf.
--
Glynn Clements <[EMAIL PROTECTED]>