From 31c049a24effde037c20ed9446d2725f3cb718c3 Mon Sep 17 00:00:00 2001 From: zecke Date: Sun, 26 Sep 2004 14:15:24 +0000 Subject: Since some 2.6.8 kernel the Linux kernel one can set the process name with prctl. Let us use this as well --- (limited to 'core/tools') diff --git a/core/tools/quicklauncher/main.cpp b/core/tools/quicklauncher/main.cpp index fb2ca44..286aed2 100644 --- a/core/tools/quicklauncher/main.cpp +++ b/core/tools/quicklauncher/main.cpp @@ -44,6 +44,14 @@ using namespace Opie::Core; #include #include #include + +#ifdef _OS_LINUX_ +#include +#ifndef PR_SET_NAME +#define PR_SET_NAME 15 +#endif +#endif + #include @@ -166,6 +174,7 @@ private: #ifdef _OS_LINUX_ // Change name of process setproctitle(myargv[0]); + prctl( PR_SET_NAME, (unsigned long)myargv[0], 0, 0, 0 ); #endif connect(app, SIGNAL(lastWindowClosed()), app, SLOT(hideOrQuit())); -- cgit v0.9.0.2