[Rivet-svn] r2107 - trunk/bin

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Nov 26 23:48:13 GMT 2009


Author: buckley
Date: Thu Nov 26 23:48:13 2009
New Revision: 2107

Log:
Rename process to 'rivet' on Linux... nice trick

Modified:
   trunk/bin/rivet

Modified: trunk/bin/rivet
==============================================================================
--- trunk/bin/rivet	Thu Nov 26 20:02:20 2009	(r2106)
+++ trunk/bin/rivet	Thu Nov 26 23:48:13 2009	(r2107)
@@ -28,6 +28,13 @@
     import dl
     sys.setdlopenflags(sys.getdlopenflags() | dl.RTLD_GLOBAL)
 
+## Try to rename the process on Linux
+try:
+   import ctypes
+   libc = ctypes.cdll.LoadLibrary('libc.so.6')
+   libc.prctl(15, 'rivet', 0, 0, 0)
+except Exception:
+   pass
 
 ## Try to use Psyco optimiser
 try:


More information about the Rivet-svn mailing list