diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-08-28 17:15:12 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-08-28 17:35:24 +0200 |
commit | a02a1627a954432cc65ec981cada8ba420d7ad2f (patch) | |
tree | 3111ce06668dc15d23b26500934ba5bf65341771 /src/jobs.c | |
parent | 5dd7df31306b95a3fafe6d3238d4553107a6c70f (diff) |
Allow choice to trap or not program faults
The binder traps faults by default to recover as much as
possible from unexpected errors.
Developers may need to remove that behaviour to get core file.
This introduces 2 ways to set or remove the trapping of faults:
- the environment variable AFB_TRAP_FAULTS
- the command line option --trap-faults
Both take a boolean value set using on of the following words:
1 yes true on -- enable trapping of faults (the default)
0 no false off -- disable trapping of faults
Bug-AGL: SPEC-1702
Change-Id: I6c6a3b933dbda9922a6079c390a601c533d49e55
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/jobs.c')
-rw-r--r-- | src/jobs.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -49,13 +49,6 @@ #include "fdev-epoll.h" #endif -#if 0 -#define _alert_ "do you really want to remove signal monitoring?" -#define sig_monitor_init_timeouts() ((void)0) -#define sig_monitor_clean_timeouts() ((void)0) -#define sig_monitor(to,cb,arg) (cb(0,arg)) -#endif - #define EVENT_TIMEOUT_TOP ((uint64_t)-1) #define EVENT_TIMEOUT_CHILD ((uint64_t)10000) @@ -875,12 +868,6 @@ int jobs_start(int allowed_count, int start_count, int waiter_count, void (*star goto error; } - /* start */ - if (sig_monitor_init() < 0) { - ERROR("failed to initialise signal handlers"); - goto error; - } - /* records the allowed count */ allowed = allowed_count; started = 0; |