I am having trouble that my script should change a shared variable based on a signal.
The signal is caught and the shared variable is changed, but the program does automatically stop.
See below some a small piece of code as an example.
I am using Perl 5.10.0 and CentOS 4.
print "I am here\n";
print "Shared: $flag\n";
print "signal caught";
Update: Same behaviour with Perl 5.8 under Solaris 10...