Sorry not sure how to paste this as a comment, this works for ESS:
(defun my-interrupt-ess-buffer-process ()
"Send a SIGINT to script's iESS process."
(signal-process (ess-get-process-buffer) 'sigint))
You'll need to write your own function for doing this.
You'll want to read up on the functions get-buffer-process and signal-process to learn about how to send the right signal to the ESS process.
Here is an example: An interactive function that sends a SIGINT to a buffer of your choosing.
You can modify this function to target whatever ESS buffer you ...