1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/net-im/jabber-pyaim/files/patch-src_main.py
Renato Botelho 5d506788e6 - Patch to fix with py-twisted 2.5.0
- Bump PORTREVISION

Submitted by:	maintainer in private email
2007-01-17 10:37:19 +00:00

15 lines
727 B
Python

--- src/main.py.orig Sun Oct 1 19:04:30 2006
+++ src/main.py Tue Jan 16 15:26:35 2007
@@ -89,7 +89,10 @@
import signal
signal.signal(signal.SIGHUP, reloadConfig)
# Load scripts for PID and daemonizing
- from twisted.scripts import twistd
+ try:
+ from twisted.scripts import _twistd_unix as twistd
+ except:
+ from twisted.scripts import twistd
selectWarning = "Unable to install any good reactors (kqueue, cf, epoll, poll).\nWe fell back to using select. You may have scalability problems.\nThis reactor will not support more than 1024 connections +at a time. You may silence this message by choosing 'select' or 'default' as your reactor in the transport config."
if config.reactor and len(config.reactor) > 0: