Im working on this program, and basically i want the user to enter in a line and the parent should fork a child each time this happens. Also, the child must output the line the user entered in, each child must do this. However, I am having a problem with this, as I cant seem to get a previous child to output anything, only the current one that was created outputs the string.
heres my code:
the forking starts after line 70, it isnt very much code, and i tried tracing through it but i dont see why it wont work.