Code Review
/
staging
/
windowmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
83555b0
)
binding: protect raise(SIGKILL) by getenv
author
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Tue, 12 Sep 2017 09:29:28 +0000
(11:29 +0200)
committer
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Tue, 12 Sep 2017 09:29:28 +0000
(11:29 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/afb_binding_api.cpp
patch
|
blob
|
history
diff --git
a/src/afb_binding_api.cpp
b/src/afb_binding_api.cpp
index
41eed13
..
7554cf0
100644
(file)
--- a/
src/afb_binding_api.cpp
+++ b/
src/afb_binding_api.cpp
@@
-94,8
+94,10
@@
binding_api::result_type binding_api::debug_status() {
binding_api::result_type binding_api::debug_terminate() {
logdebug("%s", __func__);
- raise(SIGKILL); // XXX afb-daemon kills it's pgroup using TERM, which
- // doesn't play well with perf
+ if (getenv("WINMAN_DEBUG_TERMINATE") != nullptr) {
+ raise(SIGKILL); // XXX afb-daemon kills it's pgroup using TERM, which
+ // doesn't play well with perf
+ }
return Ok(json_object_new_object());
}