Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

KILL INT can not wake up $SIG{INT}
Hi list,

Anyone has such experience? KILL INT pid cannot wake up $SIG{INT}  sub{}.

my code is like;

$SIG{INT} = sub {#load pm}

$SIG{ALRM} = sub {print "Driver $pm is going to sleep... bye.\n"; exit;};

the pm actually has a system call to execute something
sub xxx {
`perl xxx.pl`
}

but

my $tmp = kill "INT", $pid; ## it returns number of processes, eg: 1
cannot wake up the $SIG{INT}  at all after $SIG{ALRM} has been executed.

does system call cause the problem?

Thanks.

Report this thread to moderator Post Follow-up to this message
Old Post
Kelvin Wu
12-20-04 08:55 AM


Re: KILL INT can not wake up $SIG{INT}

----- Original Message -----
From: Kelvin Wu <kelvin.wu@gmail.com>
Date: Monday, December 20, 2004 0:36 am
Subject: KILL INT can not wake up $SIG{INT}

> Hi list,
Hello

>
> Anyone has such experience? KILL INT pid cannot wake up $SIG{INT}
> sub{}.
Only on Window's, but then again I don't think signals are a native implemen
tation in WinPerl.

> my code is like;
>
> $SIG{INT} = sub {#load pm}
>
> $SIG{ALRM} = sub {print "Driver $pm is going to sleep... bye.\n";
> exit;};
> the pm actually has a system call to execute something
> sub xxx {
> `perl xxx.pl`
> }
>
> but
>
> my $tmp = kill "INT", $pid; ## it returns number of processes, eg: 1
> cannot wake up the $SIG{INT}  at all after $SIG{ALRM} has been
> executed.
Well sure, in example you have provided your entire program will exit after 
SIGALRM.

> does system call cause the problem?
It shouldn't. Post more of your code if you need more help.

HTH,
mark G.

>
> Thanks.
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>


Report this thread to moderator Post Follow-up to this message
Old Post
mgoland@optonline.net
12-21-04 01:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:10 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.