[Twisted-Python] odd problem with daemonization?

Glyph Lefkowitz glyph at twistedmatrix.com
Thu Mar 20 14:52:52 MST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Thursday, March 20, 2003, at 01:03 AM, Tommi Virtanen wrote:

> On Wed, Mar 19, 2003 at 12:02:46AM -0600, Glyph Lefkowitz wrote:
>> The reason that you're having this problem is that on the C++ side of
>> things, FD 0,1,2 are just normal FDs.
>
> 	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?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)

iD8DBQE+ejg5vVGR4uSOE2wRAsU0AJ9/ajbl4Opm3fawaw3hpBY2zhztUACfSS4p
ZxhdWIQtJfjXehNB6i8f9ds=
=oYUh
-----END PGP SIGNATURE-----





More information about the Twisted-Python mailing list