🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Athos Ribeiro Wed, 18 Nov 2026 20:00
Bug#1152421: Update from Chris
#5027
Author: Athos Ribeiro
Date: Wed, 18 Nov 2026 20:00
24 lines
2531 bytes
Hi,

> --- a/standalone.c
> +++ b/standalone.c
> @@ -228,7 +228,7 @@ vsf_standalone_main(void)
>        die("accept");
>      }
> -    ++s_children;
> +    __sync_fetch_and_add(&s_children, 1);
> @@ -251,7 +251,7 @@ vsf_standalone_main(void)
>          /* fork() failed, drop the count back out */
>          drop_ip_count(p_raw_addr);
> -        --s_children;
> +        __sync_fetch_and_sub(&s_children, 1);
> @@ -302,7 +302,7 @@ handle_sigchld(void* duff)
>        /* Account for the child dying */
> -      --s_children;
> +      __sync_fetch_and_sub(&s_children, 1);

FWIW, I pinged Chris Evans to confirm the provenance of this patch, and
it was indeed provided by Chris to fix this specific bug.

-- 
Athos Ribeiro
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads