Having recently discovered reptyr, my first action was to do everything I could to break it. This included reptyring screen into a screen session as follows:
$ screen
My zshrc cats some stuff here.
$ reptyr $(pgrep screen)
I thought that this would fail either gracefully or badly, but the failure had some interesting side effects:
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
My input is thoroughly garbled here, I'm not really sure what's going on with that process, and the exit command doesn't warn me about any jobs. What is the explanation for this?