[CalendarServer-changes] [1172] CalendarServer/branches/users/tfitz/log-alot-128/lib-patches

source_changes at macosforge.org source_changes at macosforge.org
Mon Feb 12 16:53:40 PST 2007


Revision: 1172
          http://trac.macosforge.org/projects/calendarserver/changeset/1172
Author:   tfitz at apple.com
Date:     2007-02-12 16:53:40 -0800 (Mon, 12 Feb 2007)

Log Message:
-----------
Helps to put things where they belong.

Added Paths:
-----------
    CalendarServer/branches/users/tfitz/log-alot-128/lib-patches/Twisted/twisted.scripts._twistd_unix.patch

Removed Paths:
-------------
    CalendarServer/branches/users/tfitz/log-alot-128/lib-patches/twisted.scripts._twistd_unix.patch

Copied: CalendarServer/branches/users/tfitz/log-alot-128/lib-patches/Twisted/twisted.scripts._twistd_unix.patch (from rev 1171, CalendarServer/branches/users/tfitz/log-alot-128/lib-patches/twisted.scripts._twistd_unix.patch)
===================================================================
--- CalendarServer/branches/users/tfitz/log-alot-128/lib-patches/Twisted/twisted.scripts._twistd_unix.patch	                        (rev 0)
+++ CalendarServer/branches/users/tfitz/log-alot-128/lib-patches/Twisted/twisted.scripts._twistd_unix.patch	2007-02-13 00:53:40 UTC (rev 1172)
@@ -0,0 +1,36 @@
+Index: twisted/scripts/_twistd_unix.py
+===================================================================
+--- twisted/scripts/_twistd_unix.py	(revision 19636)
++++ twisted/scripts/_twistd_unix.py	(working copy)
+@@ -126,6 +126,11 @@
+     sys.stdout.flush()
+ 
+ 
++def randstr():
++    from random import choice
++    from string import uppercase
++    return "".join([choice(uppercase) for n in range(10)])
++
+ def daemonize():
+     # See http://www.erlenstar.demon.co.uk/unix/faq_toc.html#TOC16
+     if os.fork():   # launch child and...
+@@ -141,6 +146,19 @@
+         except OSError, e:
+             if e.errno != errno.EBADF:
+                 raise
++
++    fout = file(str(os.getpid()) + "_" + randstr() + ".log", "w")
++
++    def trace_verbose(frame, event, arg):
++        try:
++            print >>fout, frame.f_code.co_filename, frame.f_lineno
++        except Exception, e:
++            print >>fout, "!" + repr(e)
++        fout.flush()
++
++    import sys
++    sys.settrace(trace_verbose)
++
+     os.close(null)
+ 
+ def shedPrivileges(euid, uid, gid):

Deleted: CalendarServer/branches/users/tfitz/log-alot-128/lib-patches/twisted.scripts._twistd_unix.patch
===================================================================
--- CalendarServer/branches/users/tfitz/log-alot-128/lib-patches/twisted.scripts._twistd_unix.patch	2007-02-13 00:43:33 UTC (rev 1171)
+++ CalendarServer/branches/users/tfitz/log-alot-128/lib-patches/twisted.scripts._twistd_unix.patch	2007-02-13 00:53:40 UTC (rev 1172)
@@ -1,36 +0,0 @@
-Index: twisted/scripts/_twistd_unix.py
-===================================================================
---- twisted/scripts/_twistd_unix.py	(revision 19636)
-+++ twisted/scripts/_twistd_unix.py	(working copy)
-@@ -126,6 +126,11 @@
-     sys.stdout.flush()
- 
- 
-+def randstr():
-+    from random import choice
-+    from string import uppercase
-+    return "".join([choice(uppercase) for n in range(10)])
-+
- def daemonize():
-     # See http://www.erlenstar.demon.co.uk/unix/faq_toc.html#TOC16
-     if os.fork():   # launch child and...
-@@ -141,6 +146,19 @@
-         except OSError, e:
-             if e.errno != errno.EBADF:
-                 raise
-+
-+    fout = file(str(os.getpid()) + "_" + randstr() + ".log", "w")
-+
-+    def trace_verbose(frame, event, arg):
-+        try:
-+            print >>fout, frame.f_code.co_filename, frame.f_lineno
-+        except Exception, e:
-+            print >>fout, "!" + repr(e)
-+        fout.flush()
-+
-+    import sys
-+    sys.settrace(trace_verbose)
-+
-     os.close(null)
- 
- def shedPrivileges(euid, uid, gid):

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070212/2f167e67/attachment.html


More information about the calendarserver-changes mailing list