]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/service.h
core: reference main/control pid of .service units via PidRef
[thirdparty/systemd.git] / src / core / service.h
index 3bf5fb1e141c7f19dccc7caeef053f89cb5f6287..e85302e616663cad2ef5c7a0ab12e5b41f2f0cba 100644 (file)
@@ -8,6 +8,7 @@ typedef struct ServiceFDStore ServiceFDStore;
 #include "kill.h"
 #include "open-file.h"
 #include "path.h"
+#include "pidref.h"
 #include "ratelimit.h"
 #include "socket.h"
 #include "unit.h"
@@ -167,7 +168,7 @@ struct Service {
         /* Runtime data of the execution context */
         ExecRuntime *exec_runtime;
 
-        pid_t main_pid, control_pid;
+        PidRef main_pid, control_pid;
 
         /* if we are a socket activated service instance, store information of the connection/peer/socket */
         int socket_fd;