Why does fprintf start printing out of order or not at all?
- by Steve Melvin
This code should take an integer, create pipes, spawn two children, wait until they are dead, and start all over again. However, around the third time around the loop I lose my prompt to enter a number and it no longer prints the number I've entered. Any ideas?
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include…