T
The Pied Typer
I have several related memory- and output-intensive Perl programs.
They all have a timeout option that uses the alarm function. The ALRM
handler goes into a temporary directory, unlinks all the files, removes
the directory, and exits.
These programs very often dump core after running the handler.
I know that they run the handler because the temporary directory
is gone afterwards. The handler is assigned by reference:
$SIG{ALRM} = $SIG{INT} = $SIG{TERM} = \&cleanup;
Has anybody seen anything like this? I suspect that the trouble
may occur when an output operation is interrupted.
-:-
I First he deals a deadly blow,
Then he staggers to and fro.
His behavior would be risible
If it only could be visible.
--The Roguelet's ABC
They all have a timeout option that uses the alarm function. The ALRM
handler goes into a temporary directory, unlinks all the files, removes
the directory, and exits.
These programs very often dump core after running the handler.
I know that they run the handler because the temporary directory
is gone afterwards. The handler is assigned by reference:
$SIG{ALRM} = $SIG{INT} = $SIG{TERM} = \&cleanup;
Has anybody seen anything like this? I suspect that the trouble
may occur when an output operation is interrupted.
-:-
I First he deals a deadly blow,
Then he staggers to and fro.
His behavior would be risible
If it only could be visible.
--The Roguelet's ABC