new to inter-process programming

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.
 
J

John Tsiombikas (Nuclear / Mindlapse)

Here's the problem: my main program forks two children, each of which
execl() another program.

Wrong newsgroup, you need comp.unix.programmer.
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?

I can't think of anything without seeing what your actual code looks
like. Try making a minimal compilable program exhibiting the problem,
and post it at comp.unix.programmer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top