rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* rc-1.5b2 and SIGQUIT
@ 1997-09-30  5:21 Jason Tyler
  1997-09-30 19:44 ` Scott Schwartz
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Tyler @ 1997-09-30  5:21 UTC (permalink / raw)
  To: rc; +Cc: j

On many platforms (at least Solaris, Linux, and OSF3.2), rc-1.5b2 dies
if it receives a SIGQUIT whilst inside rc_read(). Adding the following
code (which was removed sometime between 1.4 and 1.5b2) back into
fdgchar() fixes this:

*** input.c.old Tue Sep 30 14:27:28 1997
--- input.c     Tue Sep 30 15:07:15 1997
***************
*** 140,145 ****
--- 140,147 ----
                                long /*ssize_t*/ r = rc_read(istack->fd, inbuf + 2, BUFSIZE);
                                sigchk();
                                if (r < 0) {
+                                       if (errno == EINTR)
+                                               continue;
                                        uerror("read");
                                        rc_exit(1);
                                }

However, this may be bad; was the EINTR check taken out for a good
reason? If so, how else can I fix the problem?

j


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-09-30 23:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-30  5:21 rc-1.5b2 and SIGQUIT Jason Tyler
1997-09-30 19:44 ` Scott Schwartz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).