最近发现后reptyr
,我的第一个行动就是尽一切努力打破它。这包括reptyr
将 screen 转入 screen 会话,如下所示:
$ screen
My zshrc cats some stuff here.
$ reptyr $(pgrep screen)
我认为这会失败,要么优雅,要么严重,但失败有一些有趣的副作用:
zsh: suspended screen
%
Unable to attach to pid 24799: Operation not permitted
The kernel denied permission while attaching. If your uid matches
the target's, check the value of /proc/sys/kernel/yama/ptrace_scope.
For more information, see /etc/sysctl.d/10-ptrace.conf
$ jobs
zsh: command not found: jos
$ jobs
zsh: command not found: obs
$ jobs
[1] + running screen
$ exit
我的输入在这里完全是乱码,我不太确定该进程发生了什么,并且 exit 命令不会警告我任何作业。对此有何解释?