Changeset 1222 for trunk/src/kash/jobs.c


Ignore:
Timestamp:
Oct 8, 2007, 2:24:31 AM (18 years ago)
Author:
bird
Message:

more fixes - it all compiles now (linking fails of course).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/jobs.c

    r1218 r1222  
    107107                if (psh->ttyfd != -1)
    108108                        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) {
    110110                        for (i = 0; i < 3; i++) {
    111111                                if (shfile_isatty(&psh->fdtab, i)
     
    873873                    ! fd0_redirected_p(psh)) {
    874874                        shfile_close(&psh->fdtab, 0);
    875                         if (open(devnull, O_RDONLY) != 0)
     875                        if (shfile_open(&psh->fdtab, devnull, O_RDONLY, 0) != 0)
    876876                                error(psh, nullerr, devnull);
    877877                }
     
    884884                    ! fd0_redirected_p(psh)) {
    885885                        shfile_close(&psh->fdtab, 0);
    886                         if (open(devnull, O_RDONLY) != 0)
     886                        if (shfile_open(&psh->fdtab, devnull, O_RDONLY, 0) != 0)
    887887                                error(psh, nullerr, devnull);
    888888                }
Note: See TracChangeset for help on using the changeset viewer.