producer-consumer implementation utilizing pipe(7) for interprocess communication