send seems to work, the stress test has weird unmotivated lines originally

This commit is contained in:
user
2026-03-01 01:03:21 +01:00
parent 3302149422
commit 170c29bdb5
2 changed files with 21 additions and 11 deletions

View File

@@ -18,12 +18,13 @@ void main() {
char msg[] = "REPLY: AA\n";
msg[7] += rbuf[0] + sbuf[8193];
msg[8] += 4 + ppid;
write(0, msg, 10,0, ppid);
write(0, msg, 10);
} else { // parent
int X = recv(rbuf, 8193);
receive(rbuf, 8193);
rbuf[0] = rbuf[0] + rbuf[8192];
rbuf[8193] = 7;
reply(rbuf, 8193);
reply(X,rbuf, 8193);
}
sys_exit();