Skip to content

Commit

Permalink
erts: Pending signals can be for free processes
Browse files Browse the repository at this point in the history
Since we no schedule free processes multiple times, pending
signals can be from free as well as current processes.
  • Loading branch information
garazdawi committed Mar 25, 2019
1 parent efff039 commit ef8db12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erts/emulator/beam/erl_proc_sig_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,8 @@ proc_queue_signal(Process *c_p, Eterm pid, ErtsSignal *sig, int op)
#endif
return 1;
}
ASSERT(esdp->pending_signal.dbg_from == esdp->current_process);
ASSERT(esdp->pending_signal.dbg_from == esdp->current_process ||
esdp->pending_signal.dbg_from == esdp->free_process);
if (pend_sig != sig) {
/* Switch them and send previously pending signal instead */
Eterm pend_to = esdp->pending_signal.to;
Expand Down

0 comments on commit ef8db12

Please sign in to comment.