freebsd-ports/net-im/hotot/files/patch-hotot_hotot.py
2012-10-30 10:39:29 +00:00

18 lines
487 B
Python

--- hotot/hotot.py.orig
+++ hotot/hotot.py
@@ -377,12 +377,10 @@
config.loads();
try:
import ctypes
- libc = ctypes.CDLL('libc.so.6')
- libc.prctl(15, 'hotot', 0, 0, 0)
+ libc = ctypes.CDLL(os.path.join('/usr/lib', 'libc.so'))
+ libc.setproctitle('hotot')
except:
- import dl
- libc = dl.open('/lib/libc.so.6')
- libc.call('prctl', 15, 'hotot', 0, 0, 0)
+ pass
agent.init_notify()
app = Hotot()