调试多个指定的emacs,当一个被冻结时
Debugging a specified emacs of multiple, when one is frozen
我的机器上 运行 有两个 emacs 服务器
$ ps -ef |grep emacs | sed "s/$USER/me/g"
me 4010 1 6 13:52 ? 00:02:58 /snap/emacs/25/usr/bin/emacs --daemon=orging
me 4538 1 3 13:52 ? 00:01:45 /snap/emacs/25/usr/bin/emacs --daemon=coding
me 4622 1 0 13:52 pts/1 00:00:00 /snap/emacs/25/usr/bin/emacsclient /home/me/ORG/os.org -c -s orging
me 4623 1 0 13:52 pts/1 00:00:00 /snap/emacs/25/usr/bin/emacsclient /home/me/ORG/algorithms.org -c -s coding
me 8945 3548 0 14:38 pts/1 00:00:00 grep --color=auto emacs
'orging` 之一被冻结,
阅读debugging - What do I do when Emacs is frozen? - Emacs Stack Exchange后,我得到了解决方案
pkill -SIGUSR2 emacs
如何将操作应用于指定的 emacs 说 'orging'?
使用 kill
命令并指定您想要的 emacs 实例的 pid,在本例中为 4010
:
kill -SIGUSR2 4010
我的机器上 运行 有两个 emacs 服务器
$ ps -ef |grep emacs | sed "s/$USER/me/g"
me 4010 1 6 13:52 ? 00:02:58 /snap/emacs/25/usr/bin/emacs --daemon=orging
me 4538 1 3 13:52 ? 00:01:45 /snap/emacs/25/usr/bin/emacs --daemon=coding
me 4622 1 0 13:52 pts/1 00:00:00 /snap/emacs/25/usr/bin/emacsclient /home/me/ORG/os.org -c -s orging
me 4623 1 0 13:52 pts/1 00:00:00 /snap/emacs/25/usr/bin/emacsclient /home/me/ORG/algorithms.org -c -s coding
me 8945 3548 0 14:38 pts/1 00:00:00 grep --color=auto emacs
'orging` 之一被冻结,
阅读debugging - What do I do when Emacs is frozen? - Emacs Stack Exchange后,我得到了解决方案
pkill -SIGUSR2 emacs
如何将操作应用于指定的 emacs 说 'orging'?
使用 kill
命令并指定您想要的 emacs 实例的 pid,在本例中为 4010
:
kill -SIGUSR2 4010