diff options
author | Sam Hartman <hartmans@mit.edu> | 1996-01-19 01:33:08 +0000 |
---|---|---|
committer | Sam Hartman <hartmans@mit.edu> | 1996-01-19 01:33:08 +0000 |
commit | c37e7830bd25238f680af7464837c829a89337cf (patch) | |
tree | ff4f2c4f6489333815ebe435f9a4214ae7f85b7e /src/util/pty/void_assoc.c | |
parent | 671787e2b4910be41223d0f7961acea87ad498ce (diff) | |
download | krb5-c37e7830bd25238f680af7464837c829a89337cf.tar.gz krb5-c37e7830bd25238f680af7464837c829a89337cf.tar.xz krb5-c37e7830bd25238f680af7464837c829a89337cf.zip |
Mainline utmp and login cleanups from hartmans_pty_utmp:
* Fix utmp handling on Solaris for wtmpx records
* Replace krlogin's SIGURG handler with a call to select squashing Solaris ctrl-c bug
* Fix utmp on systems without pututline so ttyslot is only used when it works
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7338 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/pty/void_assoc.c')
-rw-r--r-- | src/util/pty/void_assoc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/pty/void_assoc.c b/src/util/pty/void_assoc.c index 6735d142d..34915d5dc 100644 --- a/src/util/pty/void_assoc.c +++ b/src/util/pty/void_assoc.c @@ -24,6 +24,10 @@ long ptyint_void_association() { int con_fd; +#ifdef HAVE_SETSID + (void) setsid(); +#endif + /* Void tty association first */ if ((con_fd = open("/dev/tty", O_RDWR)) >= 0) { ioctl(con_fd, TIOCNOTTY, 0); |