Yes, it seamed very nice, but I only got it to work on Linux. On Solaris grantpt() says "grantpt failed: No child processes". According to truss pike doesn't set up it's own sigchild handler, so that shouldn't be it. The man page for grantpt also mentions that it runs some setuid root program as a possible reason for failures, but again according to truss it doesn't seem to get to that.
/ Peter Bortas
Previous text:
2003-02-15 21:08: Subject: setsid
/dev/ptmx may be cheating, but it's the only easy way to create pty pairs without introducing security holes.
/ Niels Möller ()