process-util: introduce proc_set_comm() helper

This operation is done at a bunch of places, let's add a type-safe
helper for it.
This commit is contained in:
Lennart Poettering
2026-07-13 15:39:16 +02:00
parent d3c0348c8b
commit 0e077d3eea
6 changed files with 16 additions and 10 deletions
+2
View File
@@ -257,3 +257,5 @@ _noreturn_ void report_errno_and_exit(int errno_fd, int error);
int read_errno(int errno_fd);
int prctl_safe(int op, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5);
int proc_set_comm(const char *comm);