[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash uses stderr instead of /dev/tty ?
From: |
Padraig Brady |
Subject: |
Re: bash uses stderr instead of /dev/tty ? |
Date: |
Fri, 13 Jul 2001 17:54:44 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010628 |
Note you should also do the following so that
the new tty fd is not copied to any children or
directly execed programs.
int val;
val = fcntl(tty_fd, F_GETFD, 0);
val |= FD_CLOEXEC;
fcntl(tty_fd, F_SETFD, val);
Padraig.
Padraig Brady wrote:
Doh! I really hate when I do that
patch attached.
Padraig.