Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

It takes a smart husband to have the last word and not use it.


dovenet / Synchronet Programming / src/sbbs3/websrvr.c

SubjectAuthor
o src/sbbs3/websrvr.cRob Swindell (on Windows 11)

1
src/sbbs3/websrvr.c

<65CC6DE7.48851.syncprog@vert.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=2870&group=DOVE-Net.Synchronet_Programming#2870

  copy link   Newsgroups: DOVE-Net.Synchronet_Programming
From: rob.swindell.(on.windows.11)@VERT (Rob Swindell (on Windows 11))
To: Git commit to main/sbbs/master
Subject: src/sbbs3/websrvr.c
Message-ID: <65CC6DE7.48851.syncprog@vert.synchro.net>
Date: Tue, 13 Feb 2024 23:38:15 -0800
X-Comment-To: Git commit to main/sbbs/master
Path: rocksolidbbs.com!not-for-mail
Organization: Vertrauen
Newsgroups: DOVE-Net.Synchronet_Programming
X-FTN-PID: Synchronet 3.20a-Linux master/6ed2240b1 Feb 13 2024 GCC 12.2.0
X-FTN-MSGID: 48851.syncprog@1:103/705 2a3262ba
X-FTN-CHRS: CP437 2
WhenImported: 20240213233815-0800 41e0
WhenExported: 20240214034814-0800 41e0
ExportedFrom: VERT syncprog 48851
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Rob Swindell (on Win - Wed, 14 Feb 2024 07:38 UTC

https://gitlab.synchro.net/main/sbbs/-/commit/6326f6d0d33019f5af7b31fb
Modified Files:
src/sbbs3/websrvr.c
Log Message:
Set javascript callback "terminated" flag to true when recycling

(or terminating) the server.

This will allow background JS threads to terminate when recycling, so the
server doesn't just hang indefinitelyi when recycling.

Add more logging in cleanup() when waiting for children threads to terminate.

Also, eliminate the global 'terminate' variable, answering the question:
Can this be changed to a if(ws_set!=NULL) check instead?

Yes, yes it can.

---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor