aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/nifs
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-03-15 15:38:08 +0100
committerMicael Karlberg <[email protected]>2019-03-15 15:38:08 +0100
commit18cd707d9c3bdaffeb0d52ee596df383165225ce (patch)
treee905ab40c8b305723ad743a16208d0d24a454db6 /erts/emulator/nifs
parentbb522c71838f8b46425f4156ee2ed58d155e13b5 (diff)
downloadotp-18cd707d9c3bdaffeb0d52ee596df383165225ce.tar.gz
otp-18cd707d9c3bdaffeb0d52ee596df383165225ce.tar.bz2
otp-18cd707d9c3bdaffeb0d52ee596df383165225ce.zip
[socket] Fixing debug printout
A debug printout in the socket_stop fucntion used the wrong requestor record for the pid, which may leasd to a confusing debug printout.
Diffstat (limited to 'erts/emulator/nifs')
-rw-r--r--erts/emulator/nifs/common/socket_nif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/nifs/common/socket_nif.c b/erts/emulator/nifs/common/socket_nif.c
index bb3df85ea4..174e97382e 100644
--- a/erts/emulator/nifs/common/socket_nif.c
+++ b/erts/emulator/nifs/common/socket_nif.c
@@ -17730,7 +17730,7 @@ void socket_stop(ErlNifEnv* env, void* obj, int fd, int is_direct_call)
if (COMPARE_PIDS(&descP->closerPid, &descP->currentAcceptor.pid) != 0) {
SSDBG( descP, ("SOCKET", "socket_stop -> "
"send abort message to current acceptor %T\r\n",
- descP->currentWriter.pid) );
+ descP->currentAcceptor.pid) );
if (esock_send_abort_msg(env,
sockRef,
descP->currentAcceptor.ref,