Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!gatech!hubcap!ncrcae!ncr-sd!hp-sdd!hplabs!hplabsc!daemon From: mechjgh@tness1.UUCP (Greg Hackney) Newsgroups: comp.mail.elm Subject: Fix to allow INTERRUPT in subshell Message-ID: <2124@hplabsc.HP.COM> Date: Sun, 28-Jun-87 15:47:14 EDT Article-I.D.: hplabsc.2124 Posted: Sun Jun 28 15:47:14 1987 Date-Received: Sun, 28-Jun-87 22:35:55 EDT Sender: daemon@hplabsc.HP.COM Reply-To: hplabs!tness1!mechjgh (Greg Hackney) Organization: Southwestern Bell, Texas Lines: 31 Approved: taylor@hplabs (with 'postmail') Here's a hack to Elm to enable an INTERRUPT when running a subshell. I was running a "tail -f" program in the subshell and got stuck forever because Elm was ignoring INTERRUPTS. My copy of Elm is patched out to the max, so I'll pass it on in plain english: ----------------- In the program syscall.c in the function subshell() : Add this at the beginning of the function: register int (*istat)(); Change the line: ret = system_call(command,USER_SHELL); To read: istat = signal(SIGINT,istat); /* allow INTERRUPT in subshell */ ret = system_call(command,USER_SHELL); istat = signal(SIGINT,istat); /* ignore INTERRUPT after shell */ ---------------- Greg Hackney (214+464-2771) Southwestern Bell Telephone Co. Texas Network Engineering Support Systems One Bell Plaza, Room 1825.08 Dallas, Texas 75202 UUCP: ihnp4!tness1!mechjgh