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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user