diff options
Diffstat (limited to 'compat/systemd.c')
-rw-r--r-- | compat/systemd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compat/systemd.c b/compat/systemd.c index 9a3adbb3..cce42ed4 100644 --- a/compat/systemd.c +++ b/compat/systemd.c @@ -26,6 +26,12 @@ #include "tmux.h" int +systemd_activated(void) +{ + return (sd_listen_fds(0) >= 1); +} + +int systemd_create_socket(int flags, char **cause) { int fds; |