mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
jupyter-interrupt-kernel: Don't use a signal when its not possible
This commit is contained in:
parent
eaf6478aa3
commit
dae02fa7d4
1 changed files with 4 additions and 1 deletions
|
@ -399,7 +399,10 @@ subprocess."
|
|||
(with-slots (session socket) control-channel
|
||||
(jupyter-recv session socket zmq-DONTWAIT))
|
||||
(zmq-EAGAIN nil)))))
|
||||
(_ (interrupt-process (oref kernel kernel) t)))))))
|
||||
(_
|
||||
(if (object-of-class-p kernel 'jupyter-kernel-process)
|
||||
(interrupt-process (oref kernel process) t)
|
||||
(warn "Can't interrupt kernel"))))))))
|
||||
|
||||
(cl-defmethod jupyter-kernel-alive-p ((manager jupyter-kernel-manager))
|
||||
"Is MANGER's kernel alive?"
|
||||
|
|
Loading…
Add table
Reference in a new issue