Messages in this thread | | | From | "Stefan Monnier" <monnier+lists/linux/kernel/news/@tequila.cs.yale.edu> | Subject | Re: devfs v136, ZIP disks and glibc-2.1.2 | Date | 08 Nov 1999 20:45:09 -0500 |
| |
>>>>> "Zack" == Zack Weinberg <zack@bitmover.com> writes: > mfd = open("/dev/ptmx", O_RDWR); > grantpt(mfd); > unlockpt(mfd); > sfd = open(ptsname(mfd), O_RDWR);
Hmm... Indeed, it makes the robust implementation awkward it seems.
Another question then: can it be any use at all to be able to open /dev/ptmx if /dev/pts is not mounted ? Can one use a master pty without ever opening the corresponding slave ?
If not, then the kernel could reject the open("/dev/ptmx") if the file-system is not mounted (yeah, it sounds ugly as well, indeed).
Unless Jamie's `dup2' trick can be used, of course.
Stefan
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |