sends an interrupt to the program at the other end of the specified WSTP connection.
- 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.
Basic Examples (1)
Launch a subsidiary Wolfram Language kernel process:
Send an infinite loop program:
Use LinkReadyQ to check whether the program has finished:
The process has stopped with an interrupt menu:
Wolfram Research (1996), LinkInterrupt, Wolfram Language function, https://reference.wolfram.com/language/ref/LinkInterrupt.html.
Wolfram Language. 1996. "LinkInterrupt." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LinkInterrupt.html.
Wolfram Language. (1996). LinkInterrupt. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LinkInterrupt.html