From 656bcfa4fe39c04580849798220d48d2c4067d7f Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Tue, 5 Sep 2017 15:50:19 +0200 Subject: [PATCH] main: only exit on hangup if WINMAN_EXIT_ON_HANGUP env var is present Signed-off-by: Marcus Fritzsch --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index e7b3c22..d944c24 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -72,7 +72,8 @@ int display_event_callback(sd_event_source *evs, int /*fd*/, uint32_t events, error: sd_event_source_unref(evs); - exit(1); + if (getenv("WINMAN_EXIT_ON_HANGUP") != nullptr) + exit(1); return -1; } -- 2.16.6