precice / precice/python-bindings
Ctrl-C does not interrupt shell during calls to preCICE
Nobody has claimed this yet.
- Dominant language
- Cython
- Stars
- 30
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
I have noticed that, when e.g. inside precice.initialize(), pressing Ctrl+C does not interrupt the program. This I have only observed in Python and it seems to be a common issue with subprocesses / threads in Python.
You can reproduce this problem by running e.g. one one Python solverdummy participant, without starting a second one, and trying to kill it. I will simply ignore the keyboard input.
Some starting points:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with one Python solverdummy participant and no second participant, blocking in precice.initialize() while pressing Ctrl-C. Read the Python binding entry point and its subprocess or thread handling, using the linked SIGINT references as background; done means Ctrl-C interrupts and terminates the waiting program.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100