mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:47:01 +00:00
Do not attempt to connect to the socket as a client if systemd is active, from
Julien Moutinho in GitHub issue 3345.
This commit is contained in:
@ -25,6 +25,12 @@
|
||||
|
||||
#include "tmux.h"
|
||||
|
||||
int
|
||||
systemd_activated(void)
|
||||
{
|
||||
return (sd_listen_fds(0) >= 1);
|
||||
}
|
||||
|
||||
int
|
||||
systemd_create_socket(int flags, char **cause)
|
||||
{
|
||||
|
Reference in New Issue
Block a user