Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!convex!convex.COM From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.lang.perl Subject: Re: Signal handling... Message-ID: <100773@convex.convex.com> Date: 22 Mar 90 14:16:18 GMT References: <1990Mar21.173423.7281@eci386.uucp> Sender: news@convex.com Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 16 In article <1990Mar21.173423.7281@eci386.uucp> clewis@eci386 (Chris Lewis) writes: >I want to be able to set signals in Perl for SIGINT/SIGQUIT/SIGTERM etc. >analogously to the traditional C: > > if (signal(SIGINT, SIG_IGN) == SIG_DFL) > signal(SIGINT, &myhandler); Isn't this for people who don't have shells with job control and whose background jobs still get keyboard interrupts? --tom -- Tom Christiansen {uunet,uiucdcs,sun}!convex!tchrist Convex Computer Corporation tchrist@convex.COM "EMACS belongs in : Editor too big!"