Skip to content

Conversation

@cyderize
Copy link
Member

@cyderize cyderize commented Feb 25, 2025

Rather than using CTRL_C or proc.terminate(), which is apparently unreliable, write to the special named pipe created by MiniZInc to trigger termination. This is the same approach used in the MiniZincIDE (as GUI applications also can't send CTRL_C events.

Fixes #191

@Dekker1 Dekker1 self-assigned this Feb 25, 2025
cyderize and others added 2 commits February 25, 2025 11:22
Uses the same approach that the MiniZinc IDE uses to terminate MiniZinc on Windows, by writing to a named pipe created by MiniZInc.

Fixes MiniZinc#191
@Dekker1 Dekker1 force-pushed the windows_pipe_terminate branch from 6afac14 to 40635e8 Compare February 25, 2025 00:30
@Dekker1 Dekker1 merged commit 40635e8 into MiniZinc:develop Feb 25, 2025
8 checks passed
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.

On Windows, CTRL-C needs to terminate MiniZinc and its child processes

2 participants