LinkInterrupt[link]
sends an interrupt to the program at the other end of the specified WSTP connection.


LinkInterrupt
LinkInterrupt[link]
sends an interrupt to the program at the other end of the specified WSTP connection.
Details

- link must be an active LinkObject, as returned by functions such as LinkLaunch or Links.
- It is up to the external program to determine how it will handle the interrupt.
- External programs created from WSTP templates will by default set the global variable WSAbort if they receive an abort.
Examples
Basic Examples (1)
Launch a subsidiary Wolfram Language kernel process:
Send an infinite loop program:
Use LinkReadyQ to check whether the program has finished:
Tech Notes
Related Guides
History
Introduced in 1996 (3.0)
Text
Wolfram Research (1996), LinkInterrupt, Wolfram Language function, https://reference.wolfram.com/language/ref/LinkInterrupt.html.
CMS
Wolfram Language. 1996. "LinkInterrupt." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LinkInterrupt.html.
APA
Wolfram Language. (1996). LinkInterrupt. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LinkInterrupt.html
BibTeX
@misc{reference.wolfram_2025_linkinterrupt, author="Wolfram Research", title="{LinkInterrupt}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/LinkInterrupt.html}", note=[Accessed: 15-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_linkinterrupt, organization={Wolfram Research}, title={LinkInterrupt}, year={1996}, url={https://reference.wolfram.com/language/ref/LinkInterrupt.html}, note=[Accessed: 15-August-2025]}