desktop-owner

desktop-owner is a compiled Lisp function in `desktop.el'.

(desktop-owner &optional DIRNAME)

Return the PID of the Emacs process that owns the desktop file in DIRNAME.
Return nil if no desktop file found or no Emacs process is using it.
DIRNAME omitted or nil means use `desktop-dirname'.