Pakku redirects stdout after forking in src/utils.nim, that's with Linux. I've
also been trying to gain a better understanding of this recently. The Nim
language osproc functions like startProcess capture stdout, I think they use
pipes to save the output as a variable and avoid files, not sure where that is
located in the codebase but presumably it's there somewhere. You could keep the
data in any suitable dynamically allocated variable. /tmp is usually tmpfs on
most Linux OS's so files in /tmp are in RAM, as a file based possibility.