Some Questions on : process, poll, pollfd
Posted on 2001-09-12
I have some questions :
1. Can I change the owner of the process? Suppose I execute a program.
pid = 1234
process owner = "x"
then I fork the process.
pid of child = 12345
Now I kill the parent.(1234). parent of 1235 is "1" now (init process). but owner still remains the same.. "x". can I change it to y?
2. what does POLLHUP signify in poll system call? does somebody have a piece of code that can emulate this??? when will I get POLLHUP as in reevent member of pollfd structure?
3. what is the significance of events & revents members of pollfd??? any program that emulates "all/most of" the conditions of poll will be really great.