[Zodb-checkins] SVN: zdaemon/trunk/zdctl.py explain what is going on for a pair of calls to umask();

Fred L. Drake, Jr. fdrake at gmail.com
Thu Jun 9 10:52:40 EDT 2005


Log message for revision 30708:
  explain what is going on for a pair of calls to umask();
  the pattern is not obvious to everyone
  

Changed:
  U   zdaemon/trunk/zdctl.py

-=-
Modified: zdaemon/trunk/zdctl.py
===================================================================
--- zdaemon/trunk/zdctl.py	2005-06-09 14:46:36 UTC (rev 30707)
+++ zdaemon/trunk/zdctl.py	2005-06-09 14:52:39 UTC (rev 30708)
@@ -370,6 +370,7 @@
         print "user:        ", repr(self.options.user)
         umask = self.options.umask
         if not umask:
+            # Here we're just getting the current umask so we can report it:
             umask = os.umask(0777)
             os.umask(umask)
         print "umask:       ", oct(umask)



More information about the Zodb-checkins mailing list