pidref: add helpers for waiting for pidref processes

A simple test case is added in a follow-up commit.
This commit is contained in:
Lennart Poettering
2024-01-02 17:57:34 +01:00
parent c0d672f161
commit a3f3243613
3 changed files with 60 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <sys/wait.h>
#ifndef P_PIDFD
#define P_PIDFD 3
#endif