Skip to content

TEST: Skip test_thread_exit if alert signal == 0#1469

Draft
mgondan wants to merge 1 commit intoSWI-Prolog:masterfrom
mgondan:master
Draft

TEST: Skip test_thread_exit if alert signal == 0#1469
mgondan wants to merge 1 commit intoSWI-Prolog:masterfrom
mgondan:master

Conversation

@mgondan
Copy link
Contributor

@mgondan mgondan commented Feb 15, 2026

No description provided.

@mgondan
Copy link
Contributor Author

mgondan commented Feb 15, 2026

I open this for review.

  1. It solves a problem in R package rswipl.
  2. I am still a bit puzzled, though. Under linux, patch not included: test_thread_exit passes even if I invoke swipl --sigalert=0.

So, why does this work at all:

~/swipl/bin/swipl --sigalert=0 -f none --no-packs -g "use_module(library(http/th
read_httpd)), use_module(library(http/http_dispatch)), http_server(http_dispatch,[port(Port)]), http_stop_server(Port,[]
), prolog_alert_signal(Sig, Sig), writeln(sigalert=Sig)" -t "halt(1)"
% Started server at http://localhost:37973/
sigalert=0

..., given that http_stop_server uses thread_signal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant