Remove printing dlog in the sigterm handler 57/318357/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 27 Sep 2024 06:47:17 +0000 (15:47 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 27 Sep 2024 06:47:17 +0000 (15:47 +0900)
The signal handler should call only atomic functions, otherwise it will lead to
undefined behavior.
The behavior is undefined if any signal handler performs any of the following:
- call to any library function, except for plain lock-free atomic operations and
the following signal-safe functions
(note, in particular, dynamic allocation is not signal-safe)

Change-Id: I470d1d68f7870da5412fb1a2eaf1280c2845ffcf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tizen-cpp/app-core-cpp/sigterm_handler_private.cc

index b2f1e1180f028cf3e8dfd23cf99a5ea744190748..8a5cbc6f4cc23283accf8dcfc47482d79ebb48be 100644 (file)
@@ -42,7 +42,6 @@ void RestoreSigaction() {
 }
 
 void SignalHandler(int signo) {
-  _E("SIGTERM(%d) received", signo);
   RestoreSigaction();
   raise(signo);
   _exit(0);