Commits

Anonymous committed 1c69386

using proc_lib instead of BIF to spawn process

  • Participants
  • Parent commits c3fde55

Comments (0)

Files changed (1)

 	ok;
 start_acceptors(Acceptors, Callback, CState, Socket, SSLTimeout) ->
 	Args = [self(), Callback, CState, Socket, SSLTimeout],
-	spawn(?MODULE, init_acceptor, Args),
+	proc_lib:spawn(?MODULE, init_acceptor, Args),
 	start_acceptors(Acceptors - 1, Callback, CState, Socket, SSLTimeout).
 
 %% @hidden
 	case do_accept(Socket, SSLTimeout) of
 		{ok, Client} ->
 			Args = [Parent, Callback, CState, Socket, SSLTimeout],
-			spawn(?MODULE, init_acceptor, Args),
+			proc_lib:spawn(?MODULE, init_acceptor, Args),
 			Callback:handle_connection(Client, CState);
 		{error, {{ssl, ssl_accept}, timeout}} -> % SSL negotiation timed out
 			accept(Parent, Callback, CState, Socket, SSLTimeout);