ipc works better, pagefault still
This commit is contained in:
@@ -55,12 +55,12 @@ extern "C" void main() {
|
||||
for (unsigned i = 1;; ++i) {
|
||||
if(id == 2){
|
||||
send(4, text, strlen(text), text, 5);
|
||||
write(1, text, strlen(text), 15, (int)id);
|
||||
write(1, text, strlen(text), 25, (int)id);
|
||||
}
|
||||
if(id == 4){
|
||||
char blubb[10];
|
||||
receive(blubb, 10);
|
||||
write(1, blubb, strlen(blubb), 15, (int)id);
|
||||
write(1, blubb, strlen(blubb), 25, (int)id);
|
||||
reply("toast", 5);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user