Path: utzoo!attcan!uunet!pdn!tscs!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: comp.lang.perl Subject: Re: Signal handling... Message-ID: <260A2F16.3807@tct.uucp> Date: 23 Mar 90 14:13:41 GMT References: <1990Mar21.173423.7281@eci386.uucp> <100773@convex.convex.com> Organization: ComDev/TCT, Sarasota, FL Lines: 19 Chris Lewis writes: >> if (signal(SIGINT, SIG_IGN) == SIG_DFL) >> signal(SIGINT, &myhandler); According to tchrist@convex.COM (Tom Christiansen): >Isn't this for people who don't have shells with job control and >whose background jobs still get keyboard interrupts? This idiom is for people who don't have kernels with signal masks. Job control and signal masks are separate features. With a signal mask, you can set to catch a signal and still be protected from that signal. Without a signal mask, setting up the catcher opens you up to the signal you're trying to catch. Which reminds me... does Perl attempt signal mask manipulation? I suppose syscall() and vec() can handle it... -- Chip Salzenberg at ComDev/TCT , "The Usenet, in a very real sense, does not exist."