Commits

Oscar Hellström  committed 2b01952

Exit normal if parent has gone away while spawning a new child.

  • Participants
  • Parent commits 5a09d91

Comments (0)

Files changed (1)

File src/gen_tcpd.erl

 %% @hidden
 -spec init_acceptor(pid(), atom(), term(), any(), timeout()) -> _.
 init_acceptor(Parent, Callback, CState, Socket, SSLTimeout) ->
-	link(Parent),
+	try link(Parent)
+		catch exit:noproc -> exit(normal)
+	end,
 	accept(Parent, Callback, CState, Socket, SSLTimeout).
 
 accept(Parent, Callback, CState, Socket, SSLTimeout) ->