Re: Really wierd 'more' interaction with 'newrole' and stderr...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 26 May 2006 13:53:47 EDT, Michael Sweet said:

> But don't programs like "more" open /dev/tty?

What 'more' uses:

int readch () {
        unsigned char c;

        errno = 0;
        if (read (fileno(stderr), &c, 1) <= 0) {
                if (errno != EINTR)
                        end_it(0);
                else
                        c = otty.c_cc[VKILL];
        }
        return (c);
}

There's only one reference to /dev/tty, and it's re-opening stdin
to /dev/tty when spawning a 'vi'.


Attachment: pgpcaNeZ5Bryg.pgp
Description: PGP signature

--
fedora-selinux-list mailing list
fedora-selinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-selinux-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux