From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from groucho.cs.psu.edu ([130.203.2.10]) by archone.tamu.edu with SMTP id <45338>; Fri, 14 Feb 1992 22:08:39 -0600 Received: from localhost by groucho.cs.psu.edu with SMTP id <2538>; Fri, 14 Feb 1992 23:08:16 -0500 To: rc@archone.tamu.edu Subject: signals and suchlike Date: Fri, 14 Feb 1992 22:08:13 -0600 From: schwartz@groucho.cs.psu.edu Message-Id: <92Feb14.230816est.2538@groucho.cs.psu.edu> Using rc-1.3b, some questions about signals... ; whatis sigint # implicitly ignored, right? sigint not found # so why not say so? ; fn sigint {} # set to ignored ; whatis sigint # not the same? fn sigint {} # hmm The man page says that signals are reset to their default values in subshells. CHANGES says that ignored signals stay ignored. It seems like the man page is correct, though: ; cat x #!/bin/rc whatis sigint sleep 100000 ; hup x # hup runs x in the process group of the tty, so it # receives signals, but also sets sigint to sig_ign. sigint not found ; ^C # this kills x. An analogous /bin/sh script behaves as expected.