summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-05-07 16:24:30 +0200
committerThomas Haller <thaller@redhat.com>2018-05-11 10:59:18 +0200
commitf3648a4a2d04586ce3560dffbe4a457d0f67fbb3 (patch)
tree2a58eb14f2927846863b7e4b79279dc15bc883bc
parentd74d566d85ccbd6d5db8d5a37f5cbe006412c595 (diff)
downloadNetworkManager-f3648a4a2d04586ce3560dffbe4a457d0f67fbb3.tar.gz
shared: add NM_PID_T_INVAL macro for invalid PIDs
-rw-r--r--shared/nm-utils/nm-macros-internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/nm-utils/nm-macros-internal.h b/shared/nm-utils/nm-macros-internal.h
index 72c1f807af..908b25fdbe 100644
--- a/shared/nm-utils/nm-macros-internal.h
+++ b/shared/nm-utils/nm-macros-internal.h
@@ -1375,4 +1375,6 @@ nm_close (int fd)
return r;
}
+#define NM_PID_T_INVAL ((pid_t) -1)
+
#endif /* __NM_MACROS_INTERNAL_H__ */