From 95ab5bcaea7fc22898a8cb4fa12f6d94ad5b5aa4 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Thu, 26 Jun 2003 22:20:48 +0000 Subject: [PATCH] 2003-06-26 Tim Waugh * src/ImgManip.py: Seems to need the SIGCHLD handler resetting here to prevent EINTR causing traceback. svn: r1788 --- ChangeLog | 2 ++ src/ImgManip.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0f7a65aff..a5e3caf38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ 2003-06-26 Tim Waugh + * src/ImgManip.py: Seems to need the SIGCHLD handler resetting here + to prevent EINTR causing traceback. * src/plugins/Ancestors.py: Cite sources. 2003-06-26 Don Allingham diff --git a/src/ImgManip.py b/src/ImgManip.py index c59916fc4..a041ce2db 100644 --- a/src/ImgManip.py +++ b/src/ImgManip.py @@ -20,6 +20,7 @@ import os import const +import signal #------------------------------------------------------------------------- # @@ -66,6 +67,7 @@ class ImgManip: def fmt_scale_data(self,x,y,cnv): cmd = "%s -geometry %dx%d '%s' '%s:-'" % (const.convert,x,y,self.src,cnv) + signal.signal (signal.SIGCHLD, signal.SIG_DFL) r,w = popen2.popen2(cmd) buf = r.read() r.close()