Check-in Number:
|
3210 | |
Date: |
2003-Feb-11 11:54:07 (local)
2003-Feb-11 10:54:07 (UTC) |
User: | mlelstv |
Branch: | |
Comment: |
make pipes work on older systems (aka Linux) |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/sio/sio_test.c 1.17 -> 1.18
--- sio_test.c 2003/02/06 13:51:54 1.17
+++ sio_test.c 2003/02/11 10:54:07 1.18
@@ -144,14 +144,14 @@
if (child == 0) {
int result;
- close(pd[1]);
- result = (*server)(NULL, pd[0], wcount);
close(pd[0]);
+ result = (*server)(NULL, pd[1], wcount);
+ close(pd[1]);
exit(result ? 1 : 0);
} else {
- close(pd[0]);
- (*client)(_t, pd[1], wcount);
close(pd[1]);
+ (*client)(_t, pd[0], wcount);
+ close(pd[0]);
waitpid(child, &status, 0);
if (status != 0) {
ts_test_fail(TS_CTX, "child returned status %08lx\n",
|
|