Return-Path: Delivered-To: apmail-gump-commits-archive@www.apache.org Received: (qmail 63531 invoked from network); 11 Feb 2009 04:52:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2009 04:52:37 -0000 Received: (qmail 2443 invoked by uid 500); 11 Feb 2009 04:52:36 -0000 Mailing-List: contact commits-help@gump.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@gump.apache.org Delivered-To: mailing list commits@gump.apache.org Received: (qmail 2416 invoked by uid 99); 11 Feb 2009 04:52:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2009 20:52:35 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2009 04:52:33 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 709D02388A9A; Wed, 11 Feb 2009 04:52:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r743223 - in /gump/trunk: python/gump/commands/ python/gump/core/runner/ python/gump/test/ python/gump/test/resources/full1/ python/misc/ src/documentation/content/xdocs/ Date: Wed, 11 Feb 2009 04:52:08 -0000 To: commits@gump.apache.org From: bodewig@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090211045213.709D02388A9A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bodewig Date: Wed Feb 11 04:52:05 2009 New Revision: 743223 URL: http://svn.apache.org/viewvc?rev=743223&view=rev Log: fix eol-style Modified: gump/trunk/python/gump/commands/__init__.py gump/trunk/python/gump/commands/build.py gump/trunk/python/gump/core/runner/__init__.py gump/trunk/python/gump/test/resources/full1/module6.xml (contents, props changed) gump/trunk/python/gump/test/resources/full1/module7.xml (contents, props changed) gump/trunk/python/gump/test/testExample.py gump/trunk/python/misc/pgrp.py (contents, props changed) gump/trunk/src/documentation/content/xdocs/bylaws.xml gump/trunk/src/documentation/content/xdocs/mail.xml Modified: gump/trunk/python/gump/commands/__init__.py URL: http://svn.apache.org/viewvc/gump/trunk/python/gump/commands/__init__.py?rev=743223&r1=743222&r2=743223&view=diff ============================================================================== --- gump/trunk/python/gump/commands/__init__.py (original) +++ gump/trunk/python/gump/commands/__init__.py Wed Feb 11 04:52:05 2009 @@ -22,4 +22,4 @@ # tell Python what modules make up this package # NOTE: this is used by the command line processing routines so keep it up to date! -__all__ = ["env","build","check"] \ No newline at end of file +__all__ = ["env","build","check"] Modified: gump/trunk/python/gump/commands/build.py URL: http://svn.apache.org/viewvc/gump/trunk/python/gump/commands/build.py?rev=743223&r1=743222&r2=743223&view=diff ============================================================================== --- gump/trunk/python/gump/commands/build.py (original) +++ gump/trunk/python/gump/commands/build.py Wed Feb 11 04:52:05 2009 @@ -52,4 +52,4 @@ # Perform this integration run... return getRunner(run).perform() - \ No newline at end of file + Modified: gump/trunk/python/gump/core/runner/__init__.py URL: http://svn.apache.org/viewvc/gump/trunk/python/gump/core/runner/__init__.py?rev=743223&r1=743222&r2=743223&view=diff ============================================================================== --- gump/trunk/python/gump/core/runner/__init__.py (original) +++ gump/trunk/python/gump/core/runner/__init__.py Wed Feb 11 04:52:05 2009 @@ -26,4 +26,4 @@ behaviour like multithreading and/or which actors are run. Which runner to use is determined using the gump.runner.getRunner() method. -""" \ No newline at end of file +""" Modified: gump/trunk/python/gump/test/resources/full1/module6.xml URL: http://svn.apache.org/viewvc/gump/trunk/python/gump/test/resources/full1/module6.xml?rev=743223&r1=743222&r2=743223&view=diff ============================================================================== --- gump/trunk/python/gump/test/resources/full1/module6.xml (original) +++ gump/trunk/python/gump/test/resources/full1/module6.xml Wed Feb 11 04:52:05 2009 @@ -1,27 +1,27 @@ - - - - - Module #6 - - - - - - org.apache.project6 - - - - - - - - - - - - - - - + + + + + Module #6 + + + + + + org.apache.project6 + + + + + + + + + + + + + + + Propchange: gump/trunk/python/gump/test/resources/full1/module6.xml ------------------------------------------------------------------------------ svn:eol-style = native Modified: gump/trunk/python/gump/test/resources/full1/module7.xml URL: http://svn.apache.org/viewvc/gump/trunk/python/gump/test/resources/full1/module7.xml?rev=743223&r1=743222&r2=743223&view=diff ============================================================================== --- gump/trunk/python/gump/test/resources/full1/module7.xml (original) +++ gump/trunk/python/gump/test/resources/full1/module7.xml Wed Feb 11 04:52:05 2009 @@ -1,27 +1,27 @@ - - - - - Module #7 - - - - - - org.apache.project7 - - - - - - - - - - - - - - - + + + + + Module #7 + + + + + + org.apache.project7 + + + + + + + + + + + + + + + Propchange: gump/trunk/python/gump/test/resources/full1/module7.xml ------------------------------------------------------------------------------ svn:eol-style = native Modified: gump/trunk/python/gump/test/testExample.py URL: http://svn.apache.org/viewvc/gump/trunk/python/gump/test/testExample.py?rev=743223&r1=743222&r2=743223&view=diff ============================================================================== --- gump/trunk/python/gump/test/testExample.py (original) +++ gump/trunk/python/gump/test/testExample.py Wed Feb 11 04:52:05 2009 @@ -51,4 +51,4 @@ # this allows us to run this test by itself from the commandline if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main() Modified: gump/trunk/python/misc/pgrp.py URL: http://svn.apache.org/viewvc/gump/trunk/python/misc/pgrp.py?rev=743223&r1=743222&r2=743223&view=diff ============================================================================== --- gump/trunk/python/misc/pgrp.py (original) +++ gump/trunk/python/misc/pgrp.py Wed Feb 11 04:52:05 2009 @@ -1,69 +1,69 @@ - -import os -import sys -import time -import logging -import signal - -def shutdownProcessAndProcessGroup(pid): - """ - Kill this group (i.e. instigator and all child processes). - """ - print 'Kill process group (anything launched by PID' + str(pid) + ')' - try: - pgrpID=os.getpgid(pid) - if -1 != pgrpID: - print 'Kill process group : (' + str(pgrpID) + ')' - os.killpg(pgrpID,signal.SIGHUP) - else: - print 'No such PID' + str(pid) + '.' - except Exception, details: - print 'Failed to dispatch signal ' + str(details) - -def hup(sig,stack): - print "HUP : %s:%s" % ( os.getpgrp(), os.getpid() ) - sys.exit(1) - -if __name__=='__main__': - forkPID = os.fork(); - - # Child gets PID = 0 - if 0 == forkPID: - - # Become a process group leader - os.setpgrp() - - signal.signal( signal.SIGHUP, hup ) - - # First Grandchild get's 0 - forkPID = os.fork() - - if 0 == forkPID: - os.fork() - os.fork() - os.fork() - os.system('sleep 100000') - else: - os.waitpid(forkPID,0) - - print 'Child Exit : %s' % os.getpid() - - # Parent gets real PID - else: - # Timeout support - timer = None - timeout = 10 - if timeout: - import threading - timer = threading.Timer(timeout, shutdownProcessAndProcessGroup, [forkPID]) - timer.start() - - # Run the command - waitcode = os.waitpid(forkPID,0) - - print 'Wait Code : %s : %s ' % ( waitcode, timer ) - - # Stop timer (if still running) - if timer and timer.isAlive(): timer.cancel() - - print 'Exit : %s:%s' % ( os.getpgrp(), os.getpid() ) \ No newline at end of file + +import os +import sys +import time +import logging +import signal + +def shutdownProcessAndProcessGroup(pid): + """ + Kill this group (i.e. instigator and all child processes). + """ + print 'Kill process group (anything launched by PID' + str(pid) + ')' + try: + pgrpID=os.getpgid(pid) + if -1 != pgrpID: + print 'Kill process group : (' + str(pgrpID) + ')' + os.killpg(pgrpID,signal.SIGHUP) + else: + print 'No such PID' + str(pid) + '.' + except Exception, details: + print 'Failed to dispatch signal ' + str(details) + +def hup(sig,stack): + print "HUP : %s:%s" % ( os.getpgrp(), os.getpid() ) + sys.exit(1) + +if __name__=='__main__': + forkPID = os.fork(); + + # Child gets PID = 0 + if 0 == forkPID: + + # Become a process group leader + os.setpgrp() + + signal.signal( signal.SIGHUP, hup ) + + # First Grandchild get's 0 + forkPID = os.fork() + + if 0 == forkPID: + os.fork() + os.fork() + os.fork() + os.system('sleep 100000') + else: + os.waitpid(forkPID,0) + + print 'Child Exit : %s' % os.getpid() + + # Parent gets real PID + else: + # Timeout support + timer = None + timeout = 10 + if timeout: + import threading + timer = threading.Timer(timeout, shutdownProcessAndProcessGroup, [forkPID]) + timer.start() + + # Run the command + waitcode = os.waitpid(forkPID,0) + + print 'Wait Code : %s : %s ' % ( waitcode, timer ) + + # Stop timer (if still running) + if timer and timer.isAlive(): timer.cancel() + + print 'Exit : %s:%s' % ( os.getpgrp(), os.getpid() ) Propchange: gump/trunk/python/misc/pgrp.py ------------------------------------------------------------------------------ svn:eol-style = native Modified: gump/trunk/src/documentation/content/xdocs/bylaws.xml URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/content/xdocs/bylaws.xml?rev=743223&r1=743222&r2=743223&view=diff ============================================================================== --- gump/trunk/src/documentation/content/xdocs/bylaws.xml (original) +++ gump/trunk/src/documentation/content/xdocs/bylaws.xml Wed Feb 11 04:52:05 2009 @@ -378,4 +378,4 @@ - \ No newline at end of file + Modified: gump/trunk/src/documentation/content/xdocs/mail.xml URL: http://svn.apache.org/viewvc/gump/trunk/src/documentation/content/xdocs/mail.xml?rev=743223&r1=743222&r2=743223&view=diff ============================================================================== --- gump/trunk/src/documentation/content/xdocs/mail.xml (original) +++ gump/trunk/src/documentation/content/xdocs/mail.xml Wed Feb 11 04:52:05 2009 @@ -71,4 +71,4 @@ - \ No newline at end of file +