Skip to content
Snippets Groups Projects
Commit 8d663c31 authored by red-agent's avatar red-agent
Browse files

Yet another fix for the proccess renaming

parent 60bb2d0b
No related branches found
No related tags found
No related merge requests found
......@@ -165,9 +165,13 @@ else:
sysname = platform.system()
libc = CDLL(find_library('c'))
# The constant defined in <linux/prctl.h> 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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment