A question about how to use disable fork_name

In reply to dave_59:

Hi, Dave,

Thanks so much for your response, it helps a lot :) Two more questions :

  1. The reason I do not use disable fork is that I have some other threads on “do something pre” and “do something post” block, looks to me that disable fork will kill the thread in “do something pre” as well, but it is not my expectation, that is why I use disable data_send; instead. Any suggestion to handle this ?

  2. I am really curious about what you said “abruptly killing a thread running a sequence might result in a hang.” I didn’t get too much information from the link you pointed out, could you please elaborate more here ? I really want to know the potential risk for this code.

Thanks so much,

WangYang