aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/sys.h
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <egil@erlang.org>2017-01-20 16:28:42 +0100
committerBjörn-Egil Dahlberg <egil@erlang.org>2017-01-20 16:41:30 +0100
commit1623d7a85908221a118356bec64693901405659d (patch)
treeeaedfaabdd161788e9a280157f3428adf12babe6 /erts/emulator/beam/sys.h
parentb25f0618a1b03c9d5c3eb199593a0eccb8fc367f (diff)
downloadotp-1623d7a85908221a118356bec64693901405659d.tar.gz
otp-1623d7a85908221a118356bec64693901405659d.tar.bz2
otp-1623d7a85908221a118356bec64693901405659d.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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h
index 7740dd4373..41a7ff4c16 100644
--- a/erts/emulator/beam/sys.h
+++ b/erts/emulator/beam/sys.h
@@ -859,9 +859,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 */