[ZCM] [ZC] 277/ 2 Resolve "Shut down standard error and out when not in debug mode"

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Mon, 11 Mar 2002 08:59:41 -0500


Issue #277 Update (Resolve) "Shut down standard error and out when not in debug mode"
 Status Resolved, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/277

==============================================================
= Resolve - Entry #2 by htrd on Mar 11, 2002 8:59 am

 Status: Pending => Resolved

This is a duplicate of Collector #10.

That collector item has a patch which I have been using for several months, and plan to merge later today.
________________________________________
= Request - Entry #1 by evan on Mar 8, 2002 10:52 am

If Zope is not in debug mode, ZDaemon needs to redirect stdout and stderr to /dev/null before spawning processes.  This prevents IO errors and crashes when subprocesses try to print.  Note that redirecting 'sys.stdout' is *not* sufficient, since it won't help C code in database adapters, etc.
==============================================================