[erlang-questions] Re: how do I get escript to emit all output before exiting?
Tue Apr 5 12:35:54 CEST 2011
On Tue, 5 Apr 2011 04:06:18 am Mike Oxford wrote:
> What about having init:halt() send a sync'd message to the group leader to
> shut down?
> Once the group leader shuts down and returns then init:halt() will exit.
> Even without a group-leader shutdown, even having the group-leader return a
> ping-type message could unblock the init:halt() and ensure that you've
> processed the messages at least that far, thus "flushing the buffer."
I find a 100ms delay solves the problem.
Anthony Shipman Mamas don't let your babies
als@REDACTED grow up to be outsourced.
More information about the erlang-questions