[CalendarServer-changes] [1183]
CalendarServer/branches/users/tfitz/log-alot-128-2/twistedcaldav/tap
.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Feb 13 13:54:58 PST 2007
Revision: 1183
http://trac.macosforge.org/projects/calendarserver/changeset/1183
Author: tfitz at apple.com
Date: 2007-02-13 13:54:58 -0800 (Tue, 13 Feb 2007)
Log Message:
-----------
Install a signal handler.
Modified Paths:
--------------
CalendarServer/branches/users/tfitz/log-alot-128-2/twistedcaldav/tap.py
Modified: CalendarServer/branches/users/tfitz/log-alot-128-2/twistedcaldav/tap.py
===================================================================
--- CalendarServer/branches/users/tfitz/log-alot-128-2/twistedcaldav/tap.py 2007-02-13 21:27:53 UTC (rev 1182)
+++ CalendarServer/branches/users/tfitz/log-alot-128-2/twistedcaldav/tap.py 2007-02-13 21:54:58 UTC (rev 1183)
@@ -390,6 +390,16 @@
interface=bindAddress
)
httpsService.setServiceParent(service)
+
+ import signal
+ def sighup_handler(num, frame):
+ if frame is None:
+ location = "Unknown"
+ else:
+ location = str(frame.f_code.co_name) + ": " + str(frame.f_lineno)
+ log.msg("SIGHUP recieved at " + location)
+
+ signal.signal(signal.SIGHUP, sighup_handler)
return service
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070213/82392128/attachment.html
More information about the calendarserver-changes
mailing list