<div dir="ltr">Thanks will fix asap.</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 16, 2015 at 5:11 PM Nico Kruber <<a href="mailto:nico.kruber@gmail.com">nico.kruber@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In the current master (ddd1acec5100f5bcc96b29f09b80edd717746edf) the following<br>
code does not seem to properly remove the file_io_server processes. In<br>
error_logger_file_h [1] however, the terminate/2 function seems to clean up by<br>
closing the file.<br>
<br>
So I guess, either file:close/1 does not clean up or<br>
gen_event:delete_handler/3 (called by error_logger:logfile(close)[2]) does not<br>
call Module:terminate/2 anymore(?)<br>
<br>
<br>
error_logger:logfile({open, "test1"}).<br>
error_logger:logfile(close).<br>
error_logger:logfile({open, "test2"}).<br>
error_logger:logfile(close).<br>
[{X, file:pid2name(X)} || X <- processes(),<br>
  Data <- [process_info(X, [current_function, initial_call,<br>
registered_name])],<br>
  Data =/= undefined,<br>
  element(1, element(2, lists:keyfind(current_function, 1, Data))) =:=<br>
file_io_server].<br>
<br>
<br>
[1]<br>
<a href="https://github.com/erlang/otp/blob/ddd1acec5100f5bcc96b29f09b80edd717746edf/lib/stdlib/src/error_logger_file_h.erl#L97" rel="noreferrer" target="_blank">https://github.com/erlang/otp/blob/ddd1acec5100f5bcc96b29f09b80edd717746edf/lib/stdlib/src/error_logger_file_h.erl#L97</a><br>
[2]<br>
<a href="https://github.com/erlang/otp/blob/ddd1acec5100f5bcc96b29f09b80edd717746edf/lib/kernel/src/error_logger.erl#L316" rel="noreferrer" target="_blank">https://github.com/erlang/otp/blob/ddd1acec5100f5bcc96b29f09b80edd717746edf/lib/kernel/src/error_logger.erl#L316</a>_______________________________________________<br>
erlang-bugs mailing list<br>
<a href="mailto:erlang-bugs@erlang.org" target="_blank">erlang-bugs@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-bugs" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-bugs</a><br>
</blockquote></div>