Skip to content
Snippets Groups Projects
Commit 83ef5a17 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

systemd: Do nothing if NOTIFY_SOCKET env variable is not set.

A follow up on gh-4305, fix failing args.test.py
parent ef14050f
No related branches found
No related tags found
No related merge requests found
......@@ -53,8 +53,8 @@ static const char *sd_unix_path = NULL;
int systemd_init() {
sd_unix_path = getenv("NOTIFY_SOCKET");
if (sd_unix_path == NULL) {
say_info("systemd: NOTIFY_SOCKET variable is empty, skipping");
return -1;
/* Do nothing if the path is not set. */
return 0;
}
if ((sd_unix_path[0] != '@' && sd_unix_path[0] != '/') ||
(sd_unix_path[1] == '\0')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment