[5225] in Athena Bugs

home help back first fref pref prev next nref lref last post

Patch to disserve bug in Discuss

daemon@ATHENA.MIT.EDU (Stan Zanarotti)
Thu Jun 21 14:11:42 1990

Date: Thu, 21 Jun 90 02:30:47 EDT
From: srz@CHARON.MIT.EDU (Stan Zanarotti)
To: bugs@MIT.EDU

You asked for it, you got it, Toyota!

	-stan

---------------------------------------------------------------------
*** /tmp/,RCSt1004412	Thu Jun 21 02:14:39 1990
--- rpproc.c	Thu Jun 21 01:17:29 1990
***************
*** 16,24 ****
  /*
   *
   *	$Source: /mit/discuss/source/server/RCS/rpproc.c,v $
!  *	$Header: /mit/discuss/source/server/RCS/rpproc.c,v 1.9 89/06/03 00:43:37 srz Exp $
   *
   *	$Log:	rpproc.c,v $
   * Revision 1.9  89/06/03  00:43:37  srz
   * Added standard copyright notice.
   * 
--- 16,29 ----
  /*
   *
   *	$Source: /mit/discuss/source/server/RCS/rpproc.c,v $
!  *	$Header: /mit/discuss/source/server/RCS/rpproc.c,v 1.10 90/06/21 01:16:24 srz Exp $
   *
   *	$Log:	rpproc.c,v $
+  * Revision 1.10  90/06/21  01:16:24  srz
+  * Change the NOTTY of the controlling terminal to simply setting our
+  * process group;  this is a better way of avoiding tty signals since the
+  * open of /dev/tty can block in some circumstances.
+  * 
   * Revision 1.9  89/06/03  00:43:37  srz
   * Added standard copyright notice.
   * 
***************
*** 170,180 ****
  	(void) dup2(1, 2);
      }
      {
! 	int tt = open("/dev/tty", O_RDWR);
! 	if (tt != -1) {
! 	    ioctl (tt, TIOCNOTTY, (char *)0);
! 	    close(tt);
! 	}
      }
  #endif
      
--- 175,181 ----
  	(void) dup2(1, 2);
      }
      {
! 	setpgrp(0, getpid());		/* So we don't get tty signals */
      }
  #endif
      

home help back first fref pref prev next nref lref last post