{'EXIT', Port, Reason} ->
handle_info({'EXIT', Port, Reason}, State)
after Timeout ->
- {stop, extauth_program_timeout, State}
+ {stop, normal, State}
end;
true ->
{noreply, State}
?ERROR_MSG("External authentication program '~s' has terminated "
"unexpectedly (pid=~w), restarting via supervisor...",
[State#state.prog, State#state.os_pid]),
- {stop, extauth_program_failure, State}
+ {stop, normal, State}
end;
handle_info(Info, State) ->
?WARNING_MSG("Unexpected info: ~p", [Info]),
worker_spec(Pool, Prog, I) ->
Worker = extauth:worker_name(Pool, I),
{Worker, {extauth, start_link, [Worker, Prog]},
- transient, 5000, worker, [extauth]}.
+ permanent, 5000, worker, [extauth]}.