-rw-r--r-- | core/tools/quicklauncher/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 | |||
@@ -46,2 +46,10 @@ using namespace Opie::Core; | |||
46 | #include <sys/stat.h> | 46 | #include <sys/stat.h> |
47 | |||
48 | #ifdef _OS_LINUX_ | ||
49 | #include <sys/prctl.h> | ||
50 | #ifndef PR_SET_NAME | ||
51 | #define PR_SET_NAME 15 | ||
52 | #endif | ||
53 | #endif | ||
54 | |||
47 | #include <unistd.h> | 55 | #include <unistd.h> |
@@ -168,2 +176,3 @@ private: | |||
168 | setproctitle(myargv[0]); | 176 | setproctitle(myargv[0]); |
177 | prctl( PR_SET_NAME, (unsigned long)myargv[0], 0, 0, 0 ); | ||
169 | #endif | 178 | #endif |