rpms/system-config-bind/FC-6 system-config-bind-4.0.2-check-child.patch, NONE, 1.1 system-config-bind.spec, 1.61, 1.62

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed May 30 12:26:49 UTC 2007


Author: odvorace

Update of /cvs/dist/rpms/system-config-bind/FC-6
In directory cvs.devel.redhat.com:/tmp/cvs-serv9880

Modified Files:
	system-config-bind.spec 
Added Files:
	system-config-bind-4.0.2-check-child.patch 
Log Message:
Fix for bug #236047

system-config-bind-4.0.2-check-child.patch:
 GUI.py |   16 ++++++++++++++++
 1 files changed, 16 insertions(+)

--- NEW FILE system-config-bind-4.0.2-check-child.patch ---
--- system-config-bind-4.0.2/GUI.py.old	2007-01-23 16:18:40.000000000 +0100
+++ system-config-bind-4.0.2/GUI.py	2007-01-23 16:23:14.000000000 +0100
@@ -155,6 +155,14 @@
         return True
 
     def show_manual(self, dialog, event=None):
+	if (hasattr(self,'manual_pid')) and self.manual_pid != 0:
+	    # process already exist -> check it
+	    try:
+                os.waitpid(self.manual_pid, os.WNOHANG)
+                self.manual_pid = 0
+            except:               
+                self.manual_pid = 0
+
         if (not hasattr(self,'manual_pid')) or (os.access('/proc/'+str(self.manual_pid), os.F_OK)==0):
             try:
                 self.manual_pid=os.fork()
@@ -183,6 +191,14 @@
             return
     
     def show_arm(self, dialog, event=None):
+        if (hasattr(self,'arm_pid')) and self.arm_pid != 0:
+            # process already exist -> check it
+    	    try:
+                os.waitpid(self.arm_pid, os.WNOHANG)
+                self.arm_pid = 0
+            except:
+                self.arm_pid = 0
+
         if (not hasattr(self,'arm_pid')) or (os.access('/proc/'+str(self.arm_pid), os.F_OK)==0):
             try:
                 self.arm_pid=os.fork()


Index: system-config-bind.spec
===================================================================
RCS file: /cvs/dist/rpms/system-config-bind/FC-6/system-config-bind.spec,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- system-config-bind.spec	21 Nov 2006 15:17:11 -0000	1.61
+++ system-config-bind.spec	30 May 2007 12:26:45 -0000	1.62
@@ -1,7 +1,7 @@
 Summary: 	The Red Hat BIND DNS Configuration Tool.
 Name: 		system-config-bind
 Version: 	4.0.1
-Release: 	5%{?dist}
+Release: 	6%{?dist}
 License: 	GPL
 Group: 		Applications/System
 URL: 		http://people.redhat.com/~jvdias/system-config-bind
@@ -10,6 +10,7 @@
 Patch1: 	system-config-bind-4.0.1-i18n-2.patch
 Patch2: 	system-config-bind-4.0.1-version.patch
 Patch3: 	system-config-bind-4.0.2-version-2.patch
+Patch4:		system-config-bind-4.0.2-check-child.patch
 BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-root
 BuildArch: 	noarch
 BuildRequires:  python, gettext, make, intltool
@@ -35,6 +36,7 @@
 %patch1 -p1 -b .i18n
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 rm -rf $RPM_BUILD_ROOT
@@ -99,6 +101,9 @@
 fi
 
 %changelog
+* Wed May 30 2007 Ondrej Dvoracek <odvorace at redhat.com> - 4.0.1-6
+- added check for child processes (#236047)
+
 * Tue Nov 21 2006 Martin Stransky <stransky at redhat.com> - 4.0.1-5
 - added a second patch for issue #216584
 




More information about the fedora-cvs-commits mailing list