From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from perts6.cs.uiuc.edu ([128.174.247.68]) by hawkwind.utcs.utoronto.ca with SMTP id <24611>; Tue, 7 Jan 1997 12:04:09 -0500 Received: (from mkgardne@localhost) by perts6.cs.uiuc.edu (8.8.4/8.8.4) id LAA05449; Tue, 7 Jan 1997 11:03:59 -0600 (CST) Date: Tue, 7 Jan 1997 12:03:59 -0500 Message-Id: <199701071703.LAA05449@perts6.cs.uiuc.edu> From: "Mark K. Gardner" To: rc@hawkwind.utcs.toronto.edu Subject: RE: intr and RC Reply-to: mkgardne@cs.uiuc.edu mark> I have been having trouble interrupting commands in RC. mark> Sometimes when I ctl-c (which I have intr set to) the command mark> fails to stop. Other times it stops just fine. (Naturally, it mark> fails to stop when I have invoked a long running program, mark> rather than when it is a short running command.) I did not mark> find any mention of the problem on the rc-list. Has anyone mark> else seen this? Any suggestion on how to find the problem? mark> Configuration: mark> rc-1.5 (linux version from sunsite which differs from the mark> official 1.5beta in its add-ons), Solaris v2.5.1, readline, mark> static linkage, gcc v2.7.1 with -O2 and with a hack for mark> ~/ (which I cannot see how it would prevent mark> intr from being acknowledged). Soren> I have not looked at the rc code in a while, but this problem Soren> appeared in es and it turned out that we should be using Soren> sigsetjmp() and siglongjmp() rather than longjmp() and Soren> setjmp(). I implemented the suggestion that Soren Dayton made (the difference between SysV4 and BSD setjmp/longjmp is documented in the Solaris Porting FAQ on sunsite), but the problem still exists. I can't believe that I am the only one using rc on Solaris. Has anyone else managed to compile rc and get interrupts to work properly? I *love* rc, but this is driving me crazy! -- Mark K. Gardner (mkgardne@cs.uiuc.edu) University of Illinois at Urbana-Champaign Real-Time Systems Laboratory --