Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl-C not working #115

Open
pampelmuse76 opened this issue Dec 28, 2020 · 3 comments
Open

Ctrl-C not working #115

pampelmuse76 opened this issue Dec 28, 2020 · 3 comments
Milestone

Comments

@pampelmuse76
Copy link

A python program, which does not determine in the prolog part,
cannot be stopped by entering Ctrl-C.


#!/usr/bin/python
from pyswip import Prolog
prolog = Prolog()
prolog.assertz("""
f(X) :-
X #> 0,
f(X)
""")
for result in prolog.query("f(X)"):
print(result["X"])

Python 3.9.1
pyswip 0.2.10
SWI-Prolog version 8.2.3 for x86_64-linux

@allComputableThings
Copy link

allComputableThings commented Dec 28, 2020 via email

@pampelmuse76
Copy link
Author

Yes, with catcherrors=False and catcherrors=True.
Neither works.

@pampelmuse76
Copy link
Author

pampelmuse76 commented Dec 28, 2020

Sending a kill signal (TERM) to the process id is working (it determines the program)

@yuce yuce added this to the Backlog milestone Oct 27, 2024
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

No branches or pull requests

3 participants