diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-09-05 15:50:19 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-09-05 15:51:40 +0200 |
commit | 656bcfa4fe39c04580849798220d48d2c4067d7f (patch) | |
tree | 003496f0bb1ce5e9e4e8f3782bd622d4df71325e /src | |
parent | a0aeb123e0163301a5498c148ef1882d48a8d179 (diff) |
main: only exit on hangup if WINMAN_EXIT_ON_HANGUP env var is present
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |