aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2017-01-20 16:28:42 +0100
committerBjörn-Egil Dahlberg <[email protected]>2017-01-20 16:41:30 +0100
commit1623d7a85908221a118356bec64693901405659d (patch)
treeeaedfaabdd161788e9a280157f3428adf12babe6 /erts/emulator/sys
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/sys')
-rw-r--r--erts/emulator/sys/unix/sys.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/erts/emulator/sys/unix/sys.c b/erts/emulator/sys/unix/sys.c
index 2fc802a2c6..e135dbff99 100644
--- a/erts/emulator/sys/unix/sys.c
+++ b/erts/emulator/sys/unix/sys.c
@@ -119,9 +119,8 @@ erts_smp_atomic_t sys_misc_mem_sz;
static void smp_sig_notify(char c);
static int sig_notify_fds[2] = {-1, -1};
-#if !defined(ETHR_UNUSABLE_SIGUSRX) && defined(ERTS_THR_HAVE_SIG_FUNCS)
+#ifdef ERTS_SYS_SUSPEND_SIGNAL
static int sig_suspend_fds[2] = {-1, -1};
-#define ERTS_SYS_SUSPEND_SIGNAL SIGUSR2
#endif
#endif