Another wish: I need to run pppd over pty from Lua script.
I think this code must be optional: dup2(ttyfd, 0); dup2(ttyfd, 1); dup2(ttyfd, 2);