2 ms·
This doesn't even mention that at some point in one of the last 4 or 5 macOS/OSX releases, Apple made it so that processes started by launchd (i.e. GUI apps) no
by PaulDavisThe1st 6y ago
This doesn't even mention that at some point in one of the last 4 or 5 macOS/OSX releases, Apple made it so that processes started by launchd (i.e. GUI apps) no longer have stdout/stderr file descriptors that point to anywhere.
They used to "point at" the Console, which provided a handy, non-platform specific way to get debug output from a GUI app. But oh no, we can't have that. Got to use whatever the logging API flavor of the month is to get anything into the Console (that correct logging API (i.e. one that actuallyworks) has also changed over the last 4-5 releases).
Oh well, dup2 (2) to the rescue.