[Zope-Checkins] SVN: Zope/branches/2.12/src/Zope2/Startup/zopectl.py Don't whine and barf when someone hits Ctrl-C during zopectl fg on Windows.
by Chris Withers other posts by this author
Oct 30 2009 11:29AM messages near this date
[Zope-Checkins] SVN: Zope/trunk/src/Zope2/Startup/zopectl.py merge changes from Zope 2.12 branch:
|
[Zope-Checkins] SVN: Zope/branches/2.12/src/Zope2/Startup/zopectl.py Fix zopectl status on Windows by borrowing from:
Log message for revision 105395:
Don't whine and barf when someone hits Ctrl-C during zopectl fg on Windows.
Changed:
U Zope/branches/2.12/src/Zope2/Startup/zopectl.py
-=-
Modified: Zope/branches/2.12/src/Zope2/Startup/zopectl.py
===================================================================
--- Zope/branches/2.12/src/Zope2/Startup/zopectl.py 2009-10-30 18:26:59 UTC (rev 105394)
+++ Zope/branches/2.12/src/Zope2/Startup/zopectl.py 2009-10-30 18:29:22 UTC (rev 105395)
@@ -308,6 +308,8 @@
command = quote_command(program)
try:
return os.system(command)
+ except KeyboardInterrupt:
+ pass
finally:
for addition in local_additions: program.remove(addition)
_______________________________________________
Zope-Checkins maillist - Zope-Checkins@[...].org
https://mail.zope.org/mailman/listinfo/zope-checkins
|