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-02-02 09:40:28 +0100
commit314fddc2e2e4cd8587ce00dfce328245a315832f (patch)
tree41f87039e8c590b068e7c2832a4b351e3e436ac9 /erts/emulator/sys
parentd3506c8dc3d355b7a62085da508b41866e431a37 (diff)
downloadotp-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/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 ce87e3c7a6..a25d865c91 100644
--- a/erts/emulator/sys/unix/sys.c
+++ b/erts/emulator/sys/unix/sys.c
@@ -110,9 +110,8 @@ erts_smp_atomic_t sys_misc_mem_sz;
static void smp_sig_notify(int signum);
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