aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2018-08-10 11:50:07 +0200
committerLukas Larsson <[email protected]>2018-08-10 11:50:07 +0200
commit1d1f29eb614ce75012f9136d185f4dbcccc8650b (patch)
treea9cbd146c9bcffc8c3263390cedfb1efe281bba6
parent0ae934aa008f9ff2a929eafc52811fcde619631a (diff)
downloadotp-1d1f29eb614ce75012f9136d185f4dbcccc8650b.tar.gz
otp-1d1f29eb614ce75012f9136d185f4dbcccc8650b.tar.bz2
otp-1d1f29eb614ce75012f9136d185f4dbcccc8650b.zip
erts: Delete fd from poll-set when closing fd_driver port
-rw-r--r--erts/emulator/sys/unix/sys_drivers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/sys/unix/sys_drivers.c b/erts/emulator/sys/unix/sys_drivers.c
index d0498f0bd5..816bdea9c5 100644
--- a/erts/emulator/sys/unix/sys_drivers.c
+++ b/erts/emulator/sys/unix/sys_drivers.c
@@ -1000,7 +1000,7 @@ static void clear_fd_data(ErtsSysFdData *fdd)
static void nbio_stop_fd(ErlDrvPort prt, ErtsSysFdData *fdd)
{
- driver_select(prt, abs(fdd->fd), DO_READ|DO_WRITE, 0);
+ driver_select(prt, abs(fdd->fd), ERL_DRV_USE_NO_CALLBACK|DO_READ|DO_WRITE, 0);
clear_fd_data(fdd);
SET_BLOCKING(abs(fdd->fd));