On 7/29/2016 2:16 PM, Wietse Venema wrote:
> Noel Jones:
>> This seems to break the postscreen cache cleanup for me. At the
>> scheduled cleanup time:
>> Jul 29 11:54:04 mgate3 postfix/master[81710]: warning: process
>> /usr/libexec/postfix/postscreen pid 14364 killed by signal 11
>> Jul 29 11:54:04 mgate3 postfix/master[81710]: warning:
>> /usr/libexec/postfix/postscreen: bad command startup -- throttling
>
> Thanks for testing. The patch below should fix this.
>
> Wietse
>
> *** ./src/postscreen/postscreen.c- 2016-07-28 18:19:45.000000000 -0400
> --- ./src/postscreen/postscreen.c 2016-07-29 15:13:48.000000000 -0400
> ***************
> *** 838,843 ****
> --- 838,844 ----
> void *unused_context)
> {
> PSC_STATE dummy;
> + PSC_CLIENT_INFO dummy_client_info;
>
> /*
> * This function is called by the cache cleanup pseudo thread.
> ***************
> *** 847,852 ****
> --- 848,854 ----
> * silly logging we remove the cache entry only after all tests have
> * expired longer ago than the cache retention time.
> */
> + dummy.client_info = &dummy_client_info;
> psc_parse_tests(&dummy, stamp_str, event_time() - var_psc_cache_ret);
> return ((dummy.flags & PSC_STATE_MASK_ANY_TODO) == 0);
> }
>
Thanks. Seems to work as expected.
-- Noel Jones