Permalink
Browse files

Runtime errors are caught with error not exit class.

  • Loading branch information...
oscarh committed Jul 16, 2009
1 parent ea55e41 commit f13bbb47b4933baf4e77d99584706467c32d1128
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gen_tcpd.erl
View
@@ -359,7 +359,7 @@ start_acceptors(Acceptors, Callback, CState, Socket, SSLTimeout) ->
-spec init_acceptor(pid(), atom(), term(), any(), timeout()) -> _.
init_acceptor(Parent, Callback, CState, Socket, SSLTimeout) ->
try link(Parent)
- catch exit:noproc -> exit(normal)
+ catch error:noproc -> exit(normal)
end,
accept(Parent, Callback, CState, Socket, SSLTimeout).

0 comments on commit f13bbb4

Please sign in to comment.