Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Pipe facility for logging modules. #2005
@jimdigriz had a fun idea.
The idea would be to take an 'exec' xlat expansion, expand it, and use that as a key into a tree of fork()/execve() processes. The log message would then be written to the stdin fd of the process.
Processes would be created if the xlat didn't match a pre-existing process, and cleaned up/closed after a period of inactivity.
Only unsolved problem would be what to do in a threaded environment, I guess have all threads write to the same process? Something like