Hello gurus, 

i just wanted to understand popen() functionality in detail. 
per my understanding, this is similar to fork and when called from inside the 
program (lets say parent), it opens a file descriptor (pipe) and executes the 
passed argumnet in a forked (child) process. 

however, i have following doubts.
1. the parent process which calls this, is it blocked until the popen(cmd) 
(lets say its invoking 'cmd' shell script) is completed? 
2. is there any timer associated with this call? i mean lets say i am executing 
a script through popen and that script goes in a loop, what happens to the 
parent process? 

thanks for your help in advance.
-rp
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to