Loop waiting for new writes to the fifo