From owner-freebsd-questions Tue Oct 2 11:12:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from globalrelay.com (h216-18-71-77.gtcust.grouptelecom.net [216.18.71.77]) by hub.freebsd.org (Postfix) with ESMTP id D67B537B406 for ; Tue, 2 Oct 2001 11:12:16 -0700 (PDT) Received: from [24.76.149.87] (HELO cns) by globalrelay.com (CommuniGate Pro SMTP 3.4.7) with SMTP id 705247; Tue, 02 Oct 2001 11:12:15 -0700 Message-ID: <024701c14b6d$90849110$57954c18@cns> From: "Eric Parusel" To: "Andrey Simonenko" , References: <020301c14b65$b1f6dbd0$57954c18@cns> <021a01c14b62$6b7fcb60$6d36120a@comsys.ntukpi.kiev.ua> Subject: Re: FreeBSD Shutdown - Signal Timing? Date: Tue, 2 Oct 2001 11:10:48 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="KOI8-R" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG That's what I've already done (IGNORE the TERM signal while processing, act as DEFAULT while sleeping). I just want to know how long I have before the script gets KILLed.... I don't want the KILL to occur while I'm in the middle of processing (not sleeping), just want to make sure my processing cycle can fit well into that time window... Eric Parusel > > ----- Original Message ----- > From: Eric Parusel > Newsgroups: lucky.freebsd.questions > Sent: Tuesday, October 02, 2001 9:16 PM > Subject: FreeBSD Shutdown - Signal Timing? > > > > I'm writing a perl script that has a long sleep cycle and a short > > processing cycle... > > During that processing cycle I'd like the script to ignore TERM's.... > > Why not just ignore TERM signal in you Perl-script: > $SIG{'TERM'} = 'IGNORE'; > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message