3 ms·
You can log to a shared memory segment. You'll need a mutex on it and a writeev call to log to it. And it will survive an application crash.
by perbu 13y ago
You can log to a shared memory segment. You'll need a mutex on it and a writeev call to log to it. And it will survive an application crash.
- codemac 13y agoHell - log to one shared buffer per cpu/thread, and then avoid the mutex. Apparently when saying logging doesn't require I/O at runtime, you gotta talk it out a lot more before people get it.