diff options
author | Björn-Egil Dahlberg <[email protected]> | 2017-01-20 16:28:42 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2017-02-02 09:40:28 +0100 |
commit | 314fddc2e2e4cd8587ce00dfce328245a315832f (patch) | |
tree | 41f87039e8c590b068e7c2832a4b351e3e436ac9 /erts/emulator/beam/sys.h | |
parent | d3506c8dc3d355b7a62085da508b41866e431a37 (diff) | |
download | otp-314fddc2e2e4cd8587ce00dfce328245a315832f.tar.gz otp-314fddc2e2e4cd8587ce00dfce328245a315832f.tar.bz2 otp-314fddc2e2e4cd8587ce00dfce328245a315832f.zip |
erts: Fix thread suspend in crashdump
* move signal handler setup
Diffstat (limited to 'erts/emulator/beam/sys.h')
-rw-r--r-- | erts/emulator/beam/sys.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h index ceea794cc4..a11fb16b39 100644 --- a/erts/emulator/beam/sys.h +++ b/erts/emulator/beam/sys.h @@ -851,9 +851,12 @@ int erts_sys_unsetenv(char *key); char *erts_read_env(char *key); void erts_free_read_env(void *value); +#if defined(ERTS_SMP) #if defined(ERTS_THR_HAVE_SIG_FUNCS) && !defined(ETHR_UNUSABLE_SIGUSRX) extern void sys_thr_resume(erts_tid_t tid); extern void sys_thr_suspend(erts_tid_t tid); +#define ERTS_SYS_SUSPEND_SIGNAL SIGUSR2 +#endif #endif /* utils.c */ |