Function: pdf-info-quit
pdf-info-quit is a natively compiled function defined in pdf-info.el.
Signature
(pdf-info-quit &optional TIMEOUT)
Documentation
Quit the epdfinfo server.
This blocks until all outstanding requests are answered. Unless TIMEOUT is non-nil, in which case we wait at most TIMEOUT seconds before killing the server.
Source Code
;; Defined in /nix/store/63h5z2vmzn0mfavcxi2idi23g5xcgkbl-emacs-packages-deps/share/emacs/site-lisp/elpa/pdf-tools-20260102.1101/pdf-info.el
(defun pdf-info-quit (&optional timeout)
"Quit the epdfinfo server.
This blocks until all outstanding requests are answered. Unless
TIMEOUT is non-nil, in which case we wait at most TIMEOUT seconds
before killing the server."
(cl-check-type timeout (or null number))
(when (pdf-info-running-p)
(let ((pdf-info-asynchronous
(if timeout (lambda (&rest _))
pdf-info-asynchronous)))
(pdf-info-query 'quit)
(when timeout
(setq timeout (+ (float-time) (max 0 timeout)))
(while (and (pdf-info-running-p)
(> timeout (float-time)))
(accept-process-output (pdf-info-process) 0.5 nil t)))))
(when (processp (pdf-info-process))
(tq-close pdf-info--queue))
(setq pdf-info--queue nil))