http://bugzilla.spamassassin.org/show_bug.cgi?id=3828
------- Additional Comments From [EMAIL PROTECTED] 2004-11-23 15:37 -------
'it cant be stored
in $self->{main} unless it was something like
$self->{main}->{pid_of_child}->{start_time}'
actually, no, it's fine to do that -- each M:SA object is single-threaded.
but, I've just noticed something in perldoc -f alarm:
Only one timer may be counting at once. Each call disables the
previous timer, and an argument of 0 may be supplied to cancel
the previous timer without starting a new one. The returned
value is the amount of time remaining on the previous timer.
so IMO it should be simpler to just fix the helper-app timeout code to save any
previous timers, and restore them afterwards instead of using "alarm 0", like
so:
my $oldalarm = alarm($timeout);
....timeout-sensitive code...
alarm $oldalarm; #timeout set back to what it was
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.