<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2014-09-16 13:45 GMT+02:00 Roger Lipscombe <span dir="ltr"><<a href="mailto:roger@differentpla.net" target="_blank">roger@differentpla.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
So, basically, it appears that -- assuming that the rest of my plan is<br>
sound -- I should return {stop, {shutdown, Term}, NewState}, and<br>
handle the {shutdown, Term} differently in my monitoring process.<br>
<div class="HOEnZb"><div class="h5"></div></div></blockquote><div><br></div><div>Yes, that is probably what you are looking for - {shutdown,Reason} was introduced for reasons similar to this. It is handled exactly like shutdown from supervisor's, gen_*'s and proc_lib's point of view. You can read about it in the reference manual for these modules also.<br></div><div><br></div><div>Regards<br></div><div>/siri<br></div></div></div></div>