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:12:08 +0000 (17:12 +0200)
commitb2114e0f626ed42a5d6154c681486b4edb19fbbf
treea02b0da2fd69b4f990aaf08c01b9182519fe9d2f
parent846e952260278225b79de4062fff1f8f2145a544
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: I5c896e4d9a3a098affc18d4282e260d9bb253611
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/CMakeLists.txt
src/afb-debug.c