OSSP CVS Repository

ossp - Difference in ossp-pkg/sio/sio_test.c versions 1.17 and 1.18
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

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",

CVSTrac 2.0.1