version 1.1.2.9, 2013/12/06 01:07:40
|
version 1.1.2.10, 2013/12/08 20:43:22
|
Line 52 main(int argc, char **argv)
|
Line 52 main(int argc, char **argv)
|
again: |
again: |
f = io_progAttach(p); |
f = io_progAttach(p); |
printf("f=%d\n", f); |
printf("f=%d\n", f); |
write(f, "v\n", 2); | write(f, "\n", 1); |
| memset(str, 0, sizeof str); |
while (read(f, str, sizeof str) > 0) { |
while (read(f, str, sizeof str) > 0) { |
printf(">>> %s", str); |
printf(">>> %s", str); |
|
memset(str, 0, sizeof str); |
read(0, str, sizeof str); |
read(0, str, sizeof str); |
if (*str == '.') |
if (*str == '.') |
break; |
break; |
Line 62 again:
|
Line 64 again:
|
} |
} |
io_progDetach(p, f); |
io_progDetach(p, f); |
|
|
printf("wait for keystroke %p ", p); | printf("(r) wait for keystroke %p ", p); |
if (getchar() == 'a') |
if (getchar() == 'a') |
goto again; |
goto again; |
end: |
end: |