mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 15:41:37 -05:00
Check that the process is live in jupyter-stop-channels
This commit is contained in:
parent
29ccac12d0
commit
b49d138fdb
1 changed files with 2 additions and 2 deletions
|
@ -602,10 +602,10 @@ for the heartbeat channel."
|
|||
for channel = (slot-value client sym)
|
||||
when channel do (jupyter-stop-channel channel))
|
||||
(let ((ioloop (oref client ioloop)))
|
||||
(when ioloop
|
||||
(when (process-live-p ioloop)
|
||||
(zmq-subprocess-send ioloop (cons 'quit nil))
|
||||
(with-timeout (1 (delete-process ioloop)
|
||||
(warn "IOloop process not killed by request"))
|
||||
(message "IOloop process not killed by request"))
|
||||
(while (oref client ioloop)
|
||||
(sleep-for 0 100))))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue