[CalendarServer-changes] [1168] CalendarServer/branches/users/tfitz/log-alot-128/lib-patches/twisted .scripts._twistd_unix.patch

source_changes at macosforge.org source_changes at macosforge.org
Mon Feb 12 16:27:56 PST 2007


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

Log Message:
-----------
Patching twisted to reassert sanity.

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

Added: 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	                        (rev 0)
+++ CalendarServer/branches/users/tfitz/log-alot-128/lib-patches/twisted.scripts._twistd_unix.patch	2007-02-13 00:27:56 UTC (rev 1168)
@@ -0,0 +1,24 @@
+Index: twisted/scripts/_twistd_unix.py
+===================================================================
+--- twisted/scripts/_twistd_unix.py	(revision 19636)
++++ twisted/scripts/_twistd_unix.py	(working copy)
+@@ -141,6 +141,19 @@
+         except OSError, e:
+             if e.errno != errno.EBADF:
+                 raise
++
++    fout = file(str(os.getpid()) + ".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/6a517155/attachment.html


More information about the calendarserver-changes mailing list