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.