X-Git-Url: https://git.dlugolecki.net.pl/?p=vlp.git;a=blobdiff_plain;f=int%2Fprocess.c;h=310e73bbd947f11fcebe47a25a38bac899073324;hp=2ff8706eacbecd76817010a001d9e45754a5509e;hb=e702805740237c3ce3bc4c5de9466d3f0d630595;hpb=9db87b545def5d31a64608f2eb082d915ad5efa4 diff --git a/int/process.c b/int/process.c index 2ff8706..310e73b 100644 --- a/int/process.c +++ b/int/process.c @@ -498,6 +498,7 @@ void sendmsg1(msg) /* Send message via net */ message *msg; { MESSAGE m; + int result=1; msg->control.sender.node = ournode; msg->control.sender.pix = thispix; @@ -521,8 +522,12 @@ message *msg; m.param.pword[2] = my_ctx.node; m.param.pword[3] = my_ctx.program_id; memcpy(&m.int_msg,msg,sizeof(message)); - send_to_net(&m); - + result = send_to_net(&m); + if (result == 0) { + /* 2010 local allocation */ + msg->control.receiver.node == ournode; + msginterrupt(msg); /* call directly interrupt handler */ + } } }