[Zope-dev] Zope Futures discussion: your input

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Sun, 23 Jan 2000 02:13:15 +1100


>>> Chris McDonough wrote                   ^^^^^^^^^^^^^^^^
> > Talking about external methods I have a little problem with them: every
> > time a method outputs to stdout zope bombs and you have to restart it.
> > So we have to put try/except clauses around anything when an exception
> > logged somewere would be much better in debugging the method. It is a
> > problem of my installation, a known one or a feature?
> 
> I don't think it's a known issue (at least by me)... can you reliably
> reproduce it?

Make sure you redirect stdout and stderr if you're running from, 
e.g. /etc/rc.d

python z2.py > var/zope.stdout 2> var/zope.stderr

Otherwise, on some systems, you will get a bomb either
a) as soon as you write to stdout
b) as soon as you fill whatever your stdio buffer size is, and
it tries to flush.

Anthony