[asterisk-users] Use of AGISIGHUP

Lee Archer Lee.Archer at thebigword.com
Fri Aug 27 03:36:48 CDT 2010


Thanks for the replies.  I am already ignoring the signal but it doesn't
seem to be making much difference on this system with this script.  It's
an old legacy script I should hopefully be dropping and writing properly
within the dial plan.

I will keep trying!

Thanks

Lee

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Steve
Edwards
Sent: 26 August 2010 21:02
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Use of AGISIGHUP

>> On Thu, 26 Aug 2010, Lee Archer wrote:
>
>>> I am setting AGISIGHUP=no before running a Perl script via AGI but 
>>> it doesn?t seem to be doing anything as the script is still exiting 
>>> on a hangup and not completing properly.

> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Steve 
> Edwards
>
>> I'm just a 1.2 Luddite, so I've never seen AGISIGHUP and I think it's

>> a bad idea to protect lazy programmers :)

On Thu, 26 Aug 2010, Danny Nicholas wrote:

> Here's a one-liner that should "fix" the problem
>
> local $SIG{HUP} = 'IGNORE';
>
> Does that make me lazy?

Not at all. If that is the correct "response" for your program, it's
perfect:

1) The program will execute correctly on your system, my system, any
system regardless of the configuration.

2) It tells the next guy explicitly what you intended to happen upon
receiving the signal.

--
Thanks in advance,
------------------------------------------------------------------------
-
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867
PST
Newline                                              Fax:
+1-760-731-3000

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list