Remove the trap_exit process_flag (#2737)

This commit is contained in:
Feng Lee 2019-08-09 16:02:50 +08:00 committed by tigercl
parent 68bf72ce04
commit 439c481e35
1 changed files with 0 additions and 1 deletions

View File

@ -172,7 +172,6 @@ call(CPid, Req) ->
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
init({Transport, RawSocket, Options}) -> init({Transport, RawSocket, Options}) ->
process_flag(trap_exit, true),
{ok, Socket} = Transport:wait(RawSocket), {ok, Socket} = Transport:wait(RawSocket),
{ok, Peername} = Transport:ensure_ok_or_exit(peername, [Socket]), {ok, Peername} = Transport:ensure_ok_or_exit(peername, [Socket]),
{ok, Sockname} = Transport:ensure_ok_or_exit(sockname, [Socket]), {ok, Sockname} = Transport:ensure_ok_or_exit(sockname, [Socket]),