[Zope] Re: shell command in zope on linux

Derrick Hudson dman at dman13.dyndns.org
Thu Feb 24 10:54:19 EST 2005

Hello Andrew.

On Sat, Feb 12, 2005 at 08:20:48PM -0500, Andrew Langmead wrote:
| On Feb 12, 2005, at 4:09 AM, Bernd Dorn wrote:
| >i have a testcase which runs the surrounding method successfully  
| >(python only no zope), but wenn i access the method from zope it hangs  
| >when the pdftk command tries to write to the output files and i have  
| >to kill -9 the pdftk processes
| >
| This may be another case where Python's signal handling problems are  
| screwing up the way the child process executes. The fully blocked  
| signal mask in inherited by the process you spawn, and many programs do  
| not expect to be starting up with all their signals blocked.

| Or at the very least, arrange some other way for pdftk to get access to  
| its signals. The following C program is a rough sketch towards what you  
| would need. If you compile it with a name like "unblock", you would run  
| it like this:

Your message (partially quoted above) was quite timely.  I found it
via google while trying to resolve a problem I was having, and your
"unblock.c" worked perfectly.

My situation :
    Zope 2.7.4 (and 2.7.1) on python 2.3 on linux 2.6.7 on a PowerMac G4.

    From zope I need to run a java program passing it some data from
    the zodb and then returning the java program's output to the
    browser.  (I am using IBM's JDK 1.4.2 because it is really the
    only one available)

    My zope/python code runs a shell script that runs java with the
    necessary environment (namely the classpath).  It works fine with
    Sun's JDK 1.5.0 on my x86 development system.  On the ppc system
    'java -version' worked, but the real program would consume all of
    the cpu (in system, not user space) and never finish.  I had to
    send it SIGKILL to stop it (SIGTERM had no effect).

    When I use your "unblock.c" program I have no problems at all.

I will now try the SF patch you referenced and verify that that
resolves the issue as well.


If I receive a message from you, you are agreeing that:
   1. I am by definition, "the intended recipient"
   2. All information in the email is mine to do with as I see fit and make
        such financial profit, political mileage, or good joke as it lends
        itself to. In particular, I may quote it on USENET or the WWW.
   3. I may take the contents as representing the views of your company.
   4. This overrides any disclaimer or statement of confidentiality that may
        be included on your message
www: http://dman13.dyndns.org/~dman/            jabber: dman at dman13.dyndns.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope/attachments/20050224/bfe3dbc1/attachment.bin

More information about the Zope mailing list