Lars Eggert writes:
> Running the following test script causes perl to crash. You may need
> to run the script several times before seeing the problem. (The script
> spawns a child process that does nothing but write to an array. The
> parent signals the child periodically.)

Signals and Perl do not mix.  Please do not use signals if a segfault
is not a desirable form of output.

>   $SIG{ALRM} = sub { $state++ };

One should not do anything as bad as that in a sighandler.  What is
the failure rate you see?  You may get slightly better rate (3% in my
tests) with something like

$SIG{ALRM} = sub { ++$state ; return };

and preallocating 

  $state = 0;

Ilya


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to