[948] in Kerberos-V5-bugs

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

Patch to appl/bsd/krlogin.c

daemon@ATHENA.MIT.EDU (Richard Basch)
Tue Nov 8 14:33:56 1994

Date: Tue, 8 Nov 1994 14:33:44 -0500
To: krb5-bugs@MIT.EDU
From: "Richard Basch" <basch@MIT.EDU>


This is per Ez's suggestion...

appl/bsd/ChangeLog:
Tue Nov  8 14:30:25 1994  Richard Basch  (probe@tardis)

	* krlogin.c:
	If SA_RESTART is available, set the signal handling flags to
	include SA_RESTART.  This allows the read system call to be
	restarted once interrupted for the out-of-band data.

===================================================================
RCS file: /mit/krb5/.cvsroot/src/appl/bsd/krlogin.c,v
retrieving revision 5.18
diff -c -r5.18 krlogin.c
*** krlogin.c	1994/11/08 02:37:44	5.18
--- krlogin.c	1994/11/08 19:29:18
***************
*** 1394,1399 ****
--- 1394,1404 ----
      sa.sa_handler = SIG_IGN;
      (void) sigaction(SIGTTOU, &sa, (struct sigaction *)0);
  
+ #ifdef SA_RESTART
+     /* Because SIGURG will be coming in during a read,
+      * we want to restart the syscall afterwards. */
+     sa.sa_flags |= SA_RESTART;
+ #endif
      sa.sa_handler = oob;
      (void) sigaction(SIGURG, &sa, (struct sigaction *)0);
  #else    

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