Menu

#187 process.c: avoid negative number of children

Unstable (example)
open
nobody
None
5
2021-02-06
2021-02-06
negan07
No

The number_of_children child connections number becomes negative (-1) at server startup due to signal handlers treatments on minidlna.c init()

Opening the webserver status page with no clients connected the opening connection shows -1 even if client list show 0 for all in the columns.

When connecting the first client, its own connections column goes to 1 and total goes to 0, and so on always one count behind.

attachment simply allows: number_of_children-- only if not 0

1 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.