From: Corey Minyard (minyard@crchh7b9)
Date: 02/23/93


From: minyard@crchh7b9 (Corey Minyard)
Subject: Getting login working in 0.99.6
Date: Tue, 23 Feb 1993 17:22:36 GMT

As Linus predicted, 0.99.6 broke login. However, poeigl-1.9a did not
work! It turns out the new vhangup does not close the terminal, it just
puts it in an unusable state. The following patch will fix poeigl-1.9a
to avoid this problem.

Corey
minyard@bnr.ca

*** ../poeigl.old/./login.c Mon Jan 18 08:40:57 1993
--- ./login.c Tue Feb 23 11:21:06 1993
***************
*** 307,313 ****
        (void)signal(SIGHUP, SIG_DFL);
        setsid();
  
! /* re-open stdin,stdout,stderr after vhangup() closed them */
        open(ttyn, O_RDWR); open(ttyn, O_RDWR); open(ttyn, O_RDWR);
  
        if (tty = rindex(ttyn, '/'))
--- 307,315 ----
        (void)signal(SIGHUP, SIG_DFL);
        setsid();
  
! close(0); close(1); close(2);
!
! /* re-open stdin,stdout,stderr */
        open(ttyn, O_RDWR); open(ttyn, O_RDWR); open(ttyn, O_RDWR);
  
        if (tty = rindex(ttyn, '/'))