summaryrefslogtreecommitdiff
path: root/src/basic/process-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-12-06 20:29:07 +0100
committerSven Eden <yamakuzure@gmx.net>2017-07-17 17:58:35 +0200
commite2daa07ca52e0dddb1a9f40b1c8fc9bab4e619b2 (patch)
tree1bab596036fa57db39598692795a7193b657ad6c /src/basic/process-util.h
parentc1a072fc4997f736c2c7cd9716ea2a3973c9704a (diff)
util-lib: rework rename_process() to be able to make use of PR_SET_MM_ARG_START
PR_SET_MM_ARG_START allows us to relatively cleanly implement process renaming. However, it's only available with privileges. Hence, let's try to make use of it, and if we can't fall back to the traditional way of overriding argv[0]. This removes size restrictions on the process name shown in argv[] at least for privileged processes.
Diffstat (limited to 'src/basic/process-util.h')
-rw-r--r--src/basic/process-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/process-util.h b/src/basic/process-util.h
index e904feed0..33c6637a4 100644
--- a/src/basic/process-util.h
+++ b/src/basic/process-util.h
@@ -67,7 +67,7 @@ void sigkill_waitp(pid_t *pid);
int kill_and_sigcont(pid_t pid, int sig);
-void rename_process(const char name[8]);
+int rename_process(const char name[]);
#endif // 0
int is_kernel_thread(pid_t pid);