=================================================================== RCS file: /home/cvsd/home/cvs/scripts/ep/pipe-test.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- scripts/ep/pipe-test.c 2001/12/13 17:33:41 1.1 +++ scripts/ep/pipe-test.c 2001/12/16 20:44:38 1.2 @@ -29,8 +29,8 @@ int main(int argc, char **argv) } if (pipe(pipe0) - || pipe(pipe1) - || pipe(pipe2)) { + || pipe(pipe1) + || pipe(pipe2)) { puts("pipe() failure"); return 1; } @@ -38,11 +38,11 @@ int main(int argc, char **argv) /* fcntl(pipe1[1], F_SETFL, O_NONBLOCK|O_NDELAY); fcntl(pipe2[1], F_SETFL, O_NONBLOCK|O_NDELAY); - */ sh_unset_nodelay_mode(0); sh_unset_nodelay_mode(pipe1[1]); sh_unset_nodelay_mode(pipe1[2]); + */ switch (pid = fork()) { case -1: @@ -52,8 +52,8 @@ int main(int argc, char **argv) case 0: /* Child */ if (dup2(pipe0[0], 0) == -1 - || dup2(pipe1[1], 1) == -1 - || dup2(pipe2[1], 2) == -1) { + || dup2(pipe1[1], 1) == -1 + || dup2(pipe2[1], 2) == -1) { puts("dup2() failure"); return 1; } @@ -175,7 +175,7 @@ int give_terminal_to (pid_t pgrp, int sh /* Maybe we should print an error message? */ #if 0 sys_error ("tcsetpgrp(%d) failed: pid %ld to pgrp %ld", - shell_tty, (long)getpid(), (long)pgrp); + shell_tty, (long)getpid(), (long)pgrp); #endif r = -1; }