Hey everyone,
I'm attempting to write a program that will pipe and fork to have a parent and child process. Then the parent writes numbers to the pipe and the child either multiplies or divides the two numbers. For some reason my file I/O isn't working. It's supposed to keep a log of actions etc. Below is the bulk of my code. Any suggestions to get it working would be very much appreciated. What it does now is write the child log, but not the parent or output log.