glaube unsere reply setzt nicht die buffer
This commit is contained in:
@@ -20,11 +20,12 @@ void main() {
|
|||||||
msg[8] += 4 + ppid;
|
msg[8] += 4 + ppid;
|
||||||
write(0, msg, 10);
|
write(0, msg, 10);
|
||||||
} else { // parent
|
} else { // parent
|
||||||
int X = recv(rbuf, 8193);
|
// int X = recv(rbuf, 8193);
|
||||||
receive(rbuf, 8193);
|
receive(rbuf, 8193);
|
||||||
rbuf[0] = rbuf[0] + rbuf[8192];
|
rbuf[0] = rbuf[0] + rbuf[8192];
|
||||||
rbuf[8193] = 7;
|
rbuf[8193] = 7;
|
||||||
reply(X,rbuf, 8193);
|
// reply(X,rbuf, 8193);
|
||||||
|
reply(rbuf,8193);
|
||||||
}
|
}
|
||||||
|
|
||||||
sys_exit();
|
sys_exit();
|
||||||
|
|||||||
Reference in New Issue
Block a user