File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -5666,14 +5666,15 @@ verbosity of 6."
5666
5666
" Return t if system process PROCESS-NAME is running for `user-login-name' ."
5667
5667
(when (stringp process-name)
5668
5668
(catch 'result
5669
- (dolist (pid (list-system-processes ))
5670
- (when-let ((attributes (process-attributes pid))
5671
- (comm (cdr (assoc 'comm attributes))))
5672
- (and (string-equal (cdr (assoc 'user attributes)) (user-login-name ))
5673
- ; ; The returned command name could be truncated to 15
5674
- ; ; characters. Therefore, we cannot check for `string-equal' .
5675
- (string-prefix-p comm process-name)
5676
- (throw 'result t )))))))
5669
+ (let ((default-directory temporary-file-directory))
5670
+ (dolist (pid (list-system-processes ))
5671
+ (when-let ((attributes (process-attributes pid))
5672
+ (comm (cdr (assoc 'comm attributes))))
5673
+ (and (string-equal (cdr (assoc 'user attributes)) (user-login-name ))
5674
+ ; ; The returned command name could be truncated to 15
5675
+ ; ; characters. Therefore, we cannot check for `string-equal' .
5676
+ (string-prefix-p comm process-name)
5677
+ (throw 'result t ))))))))
5677
5678
5678
5679
; ; When calling "emacs -Q", `auth-source-search' won't be called. If
5679
5680
; ; you want to debug exactly this case, call "emacs -Q --eval '(setq
You can’t perform that action at this time.
0 commit comments