From 8d663c31c56a2ccb8860f5decf26c3b1b43613b5 Mon Sep 17 00:00:00 2001 From: red-agent Date: Mon, 5 Oct 2009 19:19:03 +0300 Subject: [PATCH] Yet another fix for the proccess renaming --- src/gajim.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index f02c4166d..82b95ad46 100644 --- a/src/gajim.py +++ b/src/gajim.py @@ -165,9 +165,13 @@ else: sysname = platform.system() libc = CDLL(find_library('c')) + + # The constant defined in which is used to set the name of + # the process. + PR_SET_NAME = 15 if sysname == 'Linux': - libc.prctl(15, 'gajim', 0, 0, 0) + libc.prctl(PR_SET_NAME, 'gajim') elif sysname in ('FreeBSD', 'OpenBSD', 'NetBSD'): libc.setproctitle('gajim')