> > � Implement a better grantpt() function, which also takes a uid as
> > argument. After a first reading of the glibc implementation
> > (glibc-2.1.1pre1, available on ftp://alpha.gnu.org, in the file
> > sysdeps/unix/grantpt.c), it seems that this is a lot easier than one
> > might fear.

I'll poke around the glibc code. Writing code to re-implement a standard
facility makes me nervous, because it would seem to place the code at risk
of breaking should the underlying structures change, but this seems
relatively harmless.

It's definitely worth documenting as a potential future gotcha. 

> Do you think something like this will do? Next question is whether or
> not
> the tty_setctty works for UNIX98 sockets. And if it can be done in a
> cleaner way than reopening the slave, this time without the O_NOCTTY
> flag.

I'll see what I can find.

-John

Reply via email to