]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
process-util: drop unused TAKE_PID
authorMike Yuan <me@yhndnzj.com>
Sat, 14 Feb 2026 23:25:42 +0000 (00:25 +0100)
committerMike Yuan <me@yhndnzj.com>
Mon, 16 Feb 2026 08:44:53 +0000 (09:44 +0100)
Follow-up for fbd276cb86a2f0292cc19fd57ee3d72bf73592dc

We now track helper processes via PidRef throughout the codebase.

src/basic/process-util.h

index 40ce50d125e5ad1199bf141f4a650dcf32d76eb5..85fe81c617a20ec81dfd64cdfced3c8e57e3c7a6 100644 (file)
@@ -234,9 +234,6 @@ int get_oom_score_adjust(int *ret);
 
 assert_cc(TASKS_MAX <= (unsigned long) PID_T_MAX);
 
-/* Like TAKE_PTR() but for pid_t, resetting them to 0 */
-#define TAKE_PID(pid) TAKE_GENERIC(pid, pid_t, 0)
-
 int setpriority_closest(int priority);
 
 _noreturn_ void freeze(void);