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