summaryrefslogtreecommitdiffstats
path: root/b/module
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-23 16:52:03 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-23 16:52:03 +0200
commit3fd0af16c01a11445f45abd87e4d69cb8255b2d7 (patch)
treef5c662fea1d9e72875f0f16c02783a76ceac087d /b/module
parentrename process (diff)
downloadpyload-3fd0af16c01a11445f45abd87e4d69cb8255b2d7.tar.xz
haggs' linksavein patch
Diffstat (limited to 'b/module')
-rw-r--r--b/module/lib/rename_process.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/b/module/lib/rename_process.py b/b/module/lib/rename_process.py
deleted file mode 100644
index 2aa270171..000000000
--- a/b/module/lib/rename_process.py
+++ /dev/null
@@ -1,21 +0,0 @@
-import sys
-import os.path
-
-
-def RenameProcess(new_name):
- """ Renames the process calling the function to the given name. """
- if sys.platform != 'linux2':
- print 'Unsupported platform'
- return False
- try:
- import ctypes
- is_64 = os.path.exists('/lib64/libc.so.6')
- if is_64:
- libc = ctypes.CDLL('/lib64/libc.so.6')
- else:
- libc = ctypes.CDLL('/lib/libc.so.6')
- libc.prctl(15, new_name, 0, 0, 0)
- return True
- except:
- print "rename failed"
- return False