Friday at midnight, I wrote some code to capture subprocess output in a pipe. It didn't work, no matter how I tweaked things. This morning after a full night's rest I looked at my code and saw I had written:
pid_t pid = fork();
pipe(pipefds);
What a stupidhead I am. 😅