J
JimC
Hi all,
Here's the problem: my main program forks two children, each of which
execl() another program. That program is supposed to wait for the
parent program to send a string to it (via pipe) and it will send back
a string (also via pipe)
I have set up the pipe and everything (since i have 2 child processes,
both of which need input/output, so there are 4 pipes being created.)
The problem is the program works fine when having one child process
running, but stucks when both of them are forked. Any suggestions, or
general pitfalls that I might be trapped?
Thanks.
Here's the problem: my main program forks two children, each of which
execl() another program. That program is supposed to wait for the
parent program to send a string to it (via pipe) and it will send back
a string (also via pipe)
I have set up the pipe and everything (since i have 2 child processes,
both of which need input/output, so there are 4 pipes being created.)
The problem is the program works fine when having one child process
running, but stucks when both of them are forked. Any suggestions, or
general pitfalls that I might be trapped?
Thanks.