Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0576-kernel-gen-tcp-socket-Shutdown-results-in-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0576-kernel-gen-tcp-socket-Shutdown-results-in-crash.patch of Package erlang
From c1a32d81f7e08e38ba56f90abaaceb43f5a63d3b Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Wed, 23 Nov 2022 16:03:13 +0100 Subject: [PATCH] [kernel|gen-tcp-socket] Shutdown results in crash Adjust server shutdown to produce a "nicer" termination. OTP-18270 --- lib/kernel/src/gen_tcp_socket.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kernel/src/gen_tcp_socket.erl b/lib/kernel/src/gen_tcp_socket.erl index 104de4a680..4db13132ef 100644 --- a/lib/kernel/src/gen_tcp_socket.erl +++ b/lib/kernel/src/gen_tcp_socket.erl @@ -1145,7 +1145,7 @@ call(Server, Call) -> end. stop_server(Server) -> - try gen_statem:stop(Server) of + try gen_statem:stop(Server, {shutdown, closed}, infinity) of _ -> ok catch _:_ -> ok -- 2.35.3
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