On Thursday, Nov 6, 2003, at 23:06 US/Pacific, Ramprasad A Padmanabhan wrote:
[..]
Now If my script uses fork() , I want to ensure that the parent process
will continue to receive all updates from the jabber server and not the
child process. If I disconnect in the child process will the Jabber server
not log out the parent too.
plan A: fork the children who do NOT need to talk to the jabber server BEFORE you make the connection, this way they will not have to close out any open 'file descriptors' that they would otherwise share with the parent process.
plan B: have the child process close any of the open 'file descriptors' that it will NOT be using. Remember that the close will only be 'local' to the child process, but the parent process will still have the open connection. The 'last out' will need to make sure that any final hand shakes are done.
ciao drieux
---
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]