Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
0252-kernel-esock-Sockets-created-with-socket-a...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0252-kernel-esock-Sockets-created-with-socket-accept-1-2-.patch of Package erlang
From 9f06fea1adf6af5e11e34c2076052a42ccb2f798 Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Mon, 3 May 2021 14:00:52 +0200 Subject: [PATCH] [kernel|esock] Sockets created with socket:accept/1,2 not counted The number of sockets reported by socket:info/0 did not include sockets created socket:accept/1,2. OTP-17372 --- erts/emulator/nifs/common/prim_socket_nif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/erts/emulator/nifs/common/prim_socket_nif.c b/erts/emulator/nifs/common/prim_socket_nif.c index 39df94a45c..0de803b50d 100644 --- a/erts/emulator/nifs/common/prim_socket_nif.c +++ b/erts/emulator/nifs/common/prim_socket_nif.c @@ -6501,6 +6501,7 @@ BOOLEAN_T esock_accept_accepted(ErlNifEnv* env, accDescP->iow = descP->iow; // Inherit iow accDescP->dbg = descP->dbg; // Inherit debug flag accDescP->useReg = descP->useReg; // Inherit useReg flag + inc_socket(accDescP->domain, accDescP->type, accDescP->protocol), accRef = enif_make_resource(env, accDescP); enif_release_resource(accDescP); -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor