I need to write a program which creates some n number of processes first and also creates a fifo for each of them, then it connects to the server and..
I tried creating these processes with fork() in a for loop but it doesn't print out what i write inside the child..
Moderators have had to edit you for code tags so many times you've got negative bits. The formatting on your code is also all ruined because you didn't use code tags. PLEASE USE CODE TAGS. IT'S NOT HARD.
You haven't posted the complete program, either, I'm having to write a large part of it myself to make it work.
Your program, with nIntClientCount=3, gives this output:
I am CHILD 0
wait pid didn't match
: No child processes
I am CHILD 1
I am CHILD 1
wait pid didn't match
: No child processes
wait pid didn't match
: No child processes
I am CHILD 2
I am CHILD 2
wait pid didn't match
: No child processes
wait pid didn't match
: No child processes
parent exited..
parent exited..
parent exited..
parent exited..
I am CHILD 2
wait pid didn't match
: No child processes
parent exited..
I am CHILD 2
parent exited..
wait pid didn't match
: No child processes
parent exited..
parent exited..
I just want to create n number of childs and after each child would start executing some instruction, but when i execute the program i don't receive anything, I wonder how you get the result.
my linux system is