خرید بک لینک

Vote count: 0

I have a question about timing of monitored/linked process dying, and I can't think of how to test it in practice. Here is the scenario I am worried about.

Let's say I have a process called master and slave.

  1. master sets trap_exit to true.
  2. master does {ok, Pid} = slave:start_link() thus linking the two.
  3. master does the equivalent of gen_server:call(Pid, Msg).
  4. Before the message arrives at Pid that process crashes.

Question:

  1. Will master receive an EXIT message first? or
  2. Will master fail with {noproc,{gen_server.. exception since Pid is already dead?
asked 54 secs ago

برچسب: what happens when you die,what happens when you sneeze,what happens when you drink bleach,what happens when you block someone on facebook,what happens when you block a number,what happens when your water breaks,what happens when you have a stroke,what happens when we die,what happens when you block someone on snapchat,what happens when you smoke weed, نویسنده: استخدام کار تاريخ: پنجشنبه 21 مرداد 1395 ساعت: 8:05

صفحه بندی