aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/io.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2013-11-28 15:10:35 +0100
committerRickard Green <[email protected]>2013-11-28 15:10:35 +0100
commit23a30d882464df4210ea53096ea50e7b44876812 (patch)
treeefbc5e97dc55e63b6e194921007f88e651960764 /erts/emulator/beam/io.c
parent8bc2bac6b60724c2b454bf572ab13146a7154b2f (diff)
parent9f998969014095333545cb118467e1ff8d450c31 (diff)
downloadotp-23a30d882464df4210ea53096ea50e7b44876812.tar.gz
otp-23a30d882464df4210ea53096ea50e7b44876812.tar.bz2
otp-23a30d882464df4210ea53096ea50e7b44876812.zip
Merge branch 'maint'
* maint: Fix prim_inet:close/1 Ensure exit signal due to link precede port BIF return Conflicts: erts/preloaded/ebin/prim_inet.beam
Diffstat (limited to 'erts/emulator/beam/io.c')
-rw-r--r--erts/emulator/beam/io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c
index 60c3ce2de5..d4623c0450 100644
--- a/erts/emulator/beam/io.c
+++ b/erts/emulator/beam/io.c
@@ -3602,6 +3602,8 @@ erts_deliver_port_exit(Port *p, Eterm from, Eterm reason, int send_closed)
if (send_closed)
set_state_flags |= ERTS_PORT_SFLG_SEND_CLOSED;
+ erts_port_task_sched_enter_exiting_state(&p->sched);
+
state = erts_atomic32_read_bor_mb(&p->state, set_state_flags);
state |= set_state_flags;