Update of /cvsroot/mailman/mailman/bin
In directory usw-pr-cvs1:/tmp/cvs-serv24148

Modified Files:
        mailmanctl 
Log Message:
main(): Write the master-qrunner.pid file with 660 permissions.


Index: mailmanctl
===================================================================
RCS file: /cvsroot/mailman/mailman/bin/mailmanctl,v
retrieving revision 2.12
retrieving revision 2.13
diff -C2 -d -r2.12 -r2.13
*** mailmanctl  11 Jan 2002 00:57:25 -0000      2.12
--- mailmanctl  29 Mar 2002 18:38:31 -0000      2.13
***************
*** 366,373 ****
          # child
          lock._take_possession()
!         # First, save our pid in a file for "mailmanctl stop" rendezvous
!         fp = open(mm_cfg.PIDFILE, 'w')
!         print >> fp, os.getpid()
!         fp.close()
          # Create a new session and become the session leader, but since we
          # won't be opening any terminal devices, don't do the ultra-paranoid
--- 366,378 ----
          # child
          lock._take_possession()
!         # First, save our pid in a file for "mailmanctl stop" rendezvous.  We
!         # want the perms on the .pid file to be rw-rw----
!         omask = os.umask(6)
!         try:
!             fp = open(mm_cfg.PIDFILE, 'w')
!             print >> fp, os.getpid()
!             fp.close()
!         finally:
!             os.umask(omask)
          # Create a new session and become the session leader, but since we
          # won't be opening any terminal devices, don't do the ultra-paranoid


_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins

Reply via email to