Possible deadlock and solution

Gyepi SAM gyepi at praxis-sw.com
Fri Sep 27 17:22:40 CEST 2002


On Fri, Sep 27, 2002 at 11:04:10AM -0400, Gyepi SAM wrote:
> I think we have the possibility of deadlock between instances of bogofilter called with the -S and -N flags,
> which correspond, respectively, to one of these two calls:
> 
>    register_words(STDIN_FILENO, &good_list, &spam_list);
>    register_words(STDIN_FILENO, &spam_list, &good_list);

Correction: I inverted the correspondence:

-S corresponds to register_words(STDIN_FILENO, &spam_list, &good_list);
-N corresponds to register_words(STDIN_FILENO, &good_list, &spam_list); 

-Gyepi



More information about the bogofilter-dev mailing list