Add support for adding a utmp entry when allocating a new pty.

Requires the BSD login(3) or SYSV/POSIX getutent()/getutxent().
Currently only creates a new entry if the existing tty has
a utmp entry.
This commit is contained in:
Todd C. Miller
2011-03-08 15:37:40 -05:00
parent 9c9c0223e6
commit 1496bfed6c
6 changed files with 302 additions and 8 deletions

View File

@@ -39,7 +39,7 @@ int suspend_parent(int signo);
void fd_set_iobs(fd_set *fdsr, fd_set *fdsw);
void handler(int s);
void pty_close(struct command_status *cstat);
void pty_setup(uid_t uid);
void pty_setup(uid_t uid, const char *tty);
void terminate_child(pid_t pid, int use_pgrp);
extern int signal_pipe[2];