X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb_binding_api.cpp;h=7554cf07408e126d47119689892bf7e1b0a9a1d6;hb=1b4362e9a8ece16e37fc6327ad175475a56a6fe5;hp=41eed13ef2775cb8c00b7cd6fafdbe1f9e4bcf4d;hpb=83555b0c53f0d59f42e9dcfaeb269948e65e0391;p=staging%2Fwindowmanager.git diff --git a/src/afb_binding_api.cpp b/src/afb_binding_api.cpp index 41eed13..7554cf0 100644 --- 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()); }