Function: keyfreq-file-owner
keyfreq-file-owner is a natively compiled function defined in
keyfreq.el.
Signature
(keyfreq-file-owner)
Documentation
Return the PID of the Emacs process that owns the table file lock file.
Source Code
;; Defined in /nix/store/vs0cnjcny583s3d1i80ya8g63h6xkwrn-emacs-packages-deps/share/emacs/site-lisp/elpa/keyfreq-20231107.106/keyfreq.el
(defun keyfreq-file-owner ()
"Return the PID of the Emacs process that owns the table file lock file."
(let ((owner))
(and (file-exists-p keyfreq-file-lock)
(ignore-errors
(with-temp-buffer
(insert-file-contents-literally keyfreq-file-lock)
(goto-char (point-min))
(setq owner (read (current-buffer)))
(integerp owner)))
owner)))