[erlang-questions] erlang:halt() cannot terminate the Erlang VM

Patrik Nyblom pan@REDACTED
Wed Mar 20 09:38:27 CET 2013


On 03/18/2013 05:03 PM, Bohuslav Svancara wrote:
> >>What version of OTP are you using and on what platform? Erlang:halt 
> only stops for flushing I/O of stdin/stdout. That has changed slightly 
> in later releases. Is >>pending I/O something that could be the cause 
> in your case?
>
> Huh.  Am I understand well that if I will not send anything to stdout 
> then erlang:halt() will not work?
No, I meant that if there *is* pending I/O (write requests) on e.g. 
stdout, it will try to flush taht before exiting. If ther is no pending 
I/O, it will just exit.

>
>
>
> 2013/3/18 Patrik Nyblom <pan@REDACTED <mailto:pan@REDACTED>>
>
>     Hi!
>
>     On 03/14/2013 02:18 PM, skyman wrote:
>>     Hi all,
>>     I encounter this problem: erlang:halt() cannot terminate the
>>     Erlang VM. Then I user "kill -USR1 erlpid" to kill the Erlang VM
>>     process, and get an Erlang crash dump, it indicates that there
>>     are some "Scheduled" processes.
>>     I want to know  under what cases erlang:halt() cannot terminate
>>     the Erlang VM, for example, existing "Scheduled" processes?
>>     Thanks in advance!
>>
>     What version of OTP are you using and on what platform?
>     Erlang:halt only stops for flushing I/O of stdin/stdout. That has
>     changed slightly in later releases. Is pending I/O something that
>     could be the cause in your case?
>>
>>
>>
>>     _______________________________________________
>>     erlang-questions mailing list
>>     erlang-questions@REDACTED  <mailto:erlang-questions@REDACTED>
>>     http://erlang.org/mailman/listinfo/erlang-questions
>     Cheers,
>     /Patrik
>
>     _______________________________________________
>     erlang-questions mailing list
>     erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
>     http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
Cheers,
/Patrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130320/903c6986/attachment.htm>


More information about the erlang-questions mailing list