head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.10 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.8 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.6 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.4 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.2 pkgsrc-2025Q1-base:1.1; locks; strict; comment @// @; 1.1 date 2025.01.17.17.44.22; author rhialto; state Exp; branches; next ; commitid iHCA78dbjRjoDRFF; desc @@ 1.1 log @lang/oorexx: stop rxapi server which is started during the build. This adds some patches so that the rxapi command gets an argument to tell it to stop a currently running rxapi server. Reported upstream as https://mastodon.social/@@dec_hl/113843692204297339 @ text @$NetBSD$ Make terminateServer() resistant to being called more than once. https://sourceforge.net/p/oorexx/bugs/1993/ --- rexxapi/server/APIServer.cpp.orig 2025-01-14 14:01:33.240245578 +0000 +++ rexxapi/server/APIServer.cpp @@@@ -64,8 +64,10 @@@@ void APIServer::initServer(ServerConnect void APIServer::terminateServer() { // flip the sign over to the closed side. - connectionManager->disconnect(); - delete connectionManager; + if (connectionManager) { + connectionManager->disconnect(); + delete connectionManager; + } connectionManager = NULL; serverActive = false; } @