[Swift-commit] Cog update

swift at ci.uchicago.edu swift at ci.uchicago.edu
Sun Apr 1 22:25:03 CDT 2012


------------------------------------------------------------------------
r3367 | hategan | 2012-04-01 22:22:09 -0500 (Sun, 01 Apr 2012) | 1 line

fixed half of bug 762
------------------------------------------------------------------------
Index: modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/common/AbstractQueuePoller.java
===================================================================
--- modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/common/AbstractQueuePoller.java	(revision 3366)
+++ modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/common/AbstractQueuePoller.java	(working copy)
@@ -184,6 +184,10 @@
             else {
                 failures = 0;
             }
+            
+            // otherwise the pipes from the popen stay with the process
+            // untill the Process object gets GC-ed
+            pqstat.destroy();
         }
         catch (Exception e) {
             failAll(e);
Index: modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/sge/QueuePoller.java
===================================================================
--- modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/sge/QueuePoller.java	(revision 3366)
+++ modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/sge/QueuePoller.java	(working copy)
@@ -139,6 +139,8 @@
 					String results[] = line.split("\\s+", 2);
 					queueInformation.get(queue).addData(results);
 				}
+				
+				p.destroy();
 			}
 		} catch (IOException e) {
 			logger.error("QueuePoller command interrupted");



More information about the Swift-commit mailing list