Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site seismo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!cbosgd!seismo!rick From: rick@seismo.UUCP (Rick Adams) Newsgroups: net.sources Subject: Re: Re: netnews 2.10.2 visual.c bug Message-ID: <3912@seismo.UUCP> Date: Wed, 12-Sep-84 10:57:09 EDT Article-I.D.: seismo.3912 Posted: Wed Sep 12 10:57:09 1984 Date-Received: Fri, 14-Sep-84 07:13:09 EDT References: <137@ttidca.UUCP> <8222@umcp-cs.UUCP> Organization: Center for Seismic Studies, Arlington, VA Lines: 25 The correct fix is: *************** *** 1989,1995 #endif !BSD4_2 if (ioctl(2, TIOCGPGRP, (char *)&tpgrp) < 0) goto nottty; ! if ((0xffff&tpgrp) != (0xffff&getpgrp(0))) { /* not in foreground */ signal(SIGTTOU, SIG_DFL); #ifdef BSD4_2 sigsetmask(sigblock(0) & ~BIT(SIGTTOU)); --- 1991,1997 ----- #endif !BSD4_2 if (ioctl(2, TIOCGPGRP, (char *)&tpgrp) < 0) goto nottty; ! if (tpgrp != getpgrp(0)) { /* not in foreground */ signal(SIGTTOU, SIG_DFL); #ifdef BSD4_2 sigsetmask(sigblock(0) & ~BIT(SIGTTOU)); Do not change them to shorts, leave them ints. ---rick