Code Review
/
staging
/
windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
main: only exit on hangup if WINMAN_EXIT_ON_HANGUP env var is present
[staging/windowmanager.git]
/
src
/
main.cpp
diff --git
a/src/main.cpp
b/src/main.cpp
index
e7b3c22
..
d944c24
100644
(file)
--- 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);
error:
sd_event_source_unref(evs);
- exit(1);
+ if (getenv("WINMAN_EXIT_ON_HANGUP") != nullptr)
+ exit(1);
return -1;
}
return -1;
}