aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/common
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2011-05-10 20:43:11 +0200
committerRickard Green <[email protected]>2011-05-13 14:23:20 +0200
commit425e282be62f8205b1ba262b112f38688b421c49 (patch)
tree7aee86f0d249330f02b84440771f066e0973b272 /erts/emulator/sys/common
parent673f5d1bf684f15ac5526d8a21552eca9a0c9052 (diff)
downloadotp-425e282be62f8205b1ba262b112f38688b421c49.tar.gz
otp-425e282be62f8205b1ba262b112f38688b421c49.tar.bz2
otp-425e282be62f8205b1ba262b112f38688b421c49.zip
Ensure quick break
Make sure that we don't have to wait in poll before break handling is done.
Diffstat (limited to 'erts/emulator/sys/common')
-rw-r--r--erts/emulator/sys/common/erl_check_io.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/erts/emulator/sys/common/erl_check_io.c b/erts/emulator/sys/common/erl_check_io.c
index 218bd79584..71b374527e 100644
--- a/erts/emulator/sys/common/erl_check_io.c
+++ b/erts/emulator/sys/common/erl_check_io.c
@@ -1137,6 +1137,11 @@ ERTS_CIO_EXPORT(erts_check_io)(int do_wait)
restart:
+#ifdef ERTS_BREAK_REQUESTED
+ if (ERTS_BREAK_REQUESTED)
+ erts_do_break_handling();
+#endif
+
/* Figure out timeout value */
if (do_wait) {
erts_time_remaining(&wait_time);