[Twisted-Python] odd problem with daemonization?

Tommi Virtanen tv at twistedmatrix.com
Thu Mar 20 22:48:09 MST 2003


On Thu, Mar 20, 2003 at 03:52:52PM -0600, Glyph Lefkowitz wrote:
> >	Give up hope of being able to process the data written to fd 1
> >	or 2 directly by the C part, and dup2 /dev/null to 0, 1 and 2?
> 
> Hmm.  What about using pipes that are funneled to the logger for 1 and 
> 2, and just dup2'ing 0 to /dev/null?

	That would work. It does make the log weirdly out-of-sync as the
	pipe buffers, but otherwise it's ok.

-- 
:(){ :|:&};:




More information about the Twisted-Python mailing list