P
Palaniappan
Hi all,
i am using perl script to read few
named pipes and process it.
sometimes the program hangs if there
is no input in pipes. i want to skip
the pipes if there is no input.
so i am using alarm interrupt to break
the flow. but i want to know how to
restart the script again from interrupt ?
if i use 'goto' statement from interrupt
(jumping out of the function)
won't it increase the size of PC stack ?
(see attached code)
-palam
-----------------------------------------
LINE1_LABEL:
$SIG{'ALRM'}= &alarm_interrupt;
<declarations>;
<perl code>;
<perl code>;
<perl code>;
sub alarm_interrupt()
{
goto LINE1_LABEL;
}
i am using perl script to read few
named pipes and process it.
sometimes the program hangs if there
is no input in pipes. i want to skip
the pipes if there is no input.
so i am using alarm interrupt to break
the flow. but i want to know how to
restart the script again from interrupt ?
if i use 'goto' statement from interrupt
(jumping out of the function)
won't it increase the size of PC stack ?
(see attached code)
-palam
-----------------------------------------
LINE1_LABEL:
$SIG{'ALRM'}= &alarm_interrupt;
<declarations>;
<perl code>;
<perl code>;
<perl code>;
sub alarm_interrupt()
{
goto LINE1_LABEL;
}