mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-05 09:01:40 -05:00
"an info file will be left behind... if you hard-kill it"
https://github.com/jupyter/notebook/issues/2844#issuecomment-461770716
This commit is contained in:
parent
5fbc371da5
commit
a3604a329a
1 changed files with 6 additions and 2 deletions
|
@ -345,8 +345,12 @@ server command."
|
||||||
do (sleep-for 0 500))
|
do (sleep-for 0 500))
|
||||||
(lexical-let* ((proc (ein:jupyter-server-process))
|
(lexical-let* ((proc (ein:jupyter-server-process))
|
||||||
(pid (process-id proc)))
|
(pid (process-id proc)))
|
||||||
(ein:log 'info "Signaled %s with pid %s" proc pid)
|
(if (eq system-type 'windows-nt)
|
||||||
(signal-process pid 15)
|
(ein:query-singleton-ajax
|
||||||
|
(ein:url url-or-port "api/shutdown")
|
||||||
|
:type "POST")
|
||||||
|
(ein:log 'info "Signaled %s with pid %s" proc pid)
|
||||||
|
(signal-process pid 15))
|
||||||
(run-at-time 2 nil
|
(run-at-time 2 nil
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(ein:log 'info "Resignaled %s with pid %s" proc pid)
|
(ein:log 'info "Resignaled %s with pid %s" proc pid)
|
||||||
|
|
Loading…
Add table
Reference in a new issue