If the system includes a SA_RESTART signal flag, use it.
We want to resume the read() system call after a SIGURG comes.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4664
dc483132-0cff-0310-8789-
dd5450dbe970
+Wed Nov 16 11:45:01 1994 Richard Basch (probe@tardis)
+
+ * krlogin.c:
+ If the system includes a SA_RESTART signal flag, use it.
+ We want to be able to resume the read() system call after
+ a SIGURG comes.
+
Fri Nov 11 00:53:57 1994 Theodore Y. Ts'o (tytso@dcl)
* forward.c (mk_cred, rd_cred): Move mk_cred and rd_cred to
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