Linux-only soultions for user-uid and emacs-pid