debug: Create a file indicating the waiting point
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 6 Jul 2017 08:59:14 +0000 (10:59 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 11 Jul 2017 15:55:17 +0000 (17:55 +0200)
commit4e72c3a2a4e550f99430d1f37a8ef693d2daa8c3
tree9de91a171d6a369e2a508ab8abcc5de237ae1e34
parent19af5428bedcac6b4de7a1ac068f49738aeb1e55
debug: Create a file indicating the waiting point

When AFB_DEBUG_WAIT is used, the file /tmp/afb-debug-<PID>
is created and contains the name of the awaiting point
(without tailing new line)

Signals other than SIGINT are ignored when waiting
for SIGINT. This improves the cleaning up. Example:
the signal SIGTERM is delayed until after removal of
the debugging indication file.

Change-Id: Iea163f87e160f9a99bc10f7365920893752bd308
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/CMakeLists.txt
src/afb-debug.c