Changeset 1222 for trunk/src/kash/jobs.c
- Timestamp:
- Oct 8, 2007, 2:24:31 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/jobs.c
r1218 r1222 107 107 if (psh->ttyfd != -1) 108 108 shfile_close(&psh->fdtab, psh->ttyfd); 109 if ((psh->ttyfd = shfile_open(&psh->fdtab, "/dev/tty", O_RDWR )) == -1) {109 if ((psh->ttyfd = shfile_open(&psh->fdtab, "/dev/tty", O_RDWR, 0)) == -1) { 110 110 for (i = 0; i < 3; i++) { 111 111 if (shfile_isatty(&psh->fdtab, i) … … 873 873 ! fd0_redirected_p(psh)) { 874 874 shfile_close(&psh->fdtab, 0); 875 if ( open(devnull, O_RDONLY) != 0)875 if (shfile_open(&psh->fdtab, devnull, O_RDONLY, 0) != 0) 876 876 error(psh, nullerr, devnull); 877 877 } … … 884 884 ! fd0_redirected_p(psh)) { 885 885 shfile_close(&psh->fdtab, 0); 886 if ( open(devnull, O_RDONLY) != 0)886 if (shfile_open(&psh->fdtab, devnull, O_RDONLY, 0) != 0) 887 887 error(psh, nullerr, devnull); 888 888 }
Note:
See TracChangeset
for help on using the changeset viewer.