Trapping STDERR
Gregory Murphy (gjmurphy@cethsun.Princeton.EDU)
Tue, 17 Dec 1996 11:00:57 -0500 (EST)
Date: Tue, 17 Dec 1996 11:00:57 -0500 (EST)
From: Gregory Murphy <gjmurphy@cethsun.Princeton.EDU>
To: fastcgi-developers@openmarket.com
Subject: Trapping STDERR
Message-Id: <Pine.SOL.3.91.961217105328.19250A-100000@cethsun>
I see from fcgi_stdio.c that when FCGI_Accept() is called, it redirects
stderr to the HTTP server. Where does stderr go before the first call
to FCGI_Accept(), i.e. when the initialization portion of the fcgi
application is being processed?
Ideally, I would like to trap all data sent to stderr in the same log
file so I can keep tabs on application performance, and this includes
knowing when and how applications are restarted.
- Gregory Murphy
Center for Electronic Texts in the Humanities
Princeton University