I have screen session "main", started in
/dev/ttySAC0 and sh, started in
/dev/ttySAC0 (outside screen session) with input, output and error streams, redirected to pseudoterminal
When I attach to /dev/pts/1 terminal and try to run
screen -r main, it fails with:
WriteMessage: Bad file descriptor
But creating new screen session with
screen works fine. Furthermore, if I run
screen -r main in this screen session, I got screen with my saved session in another screen session. It's not usefull, but it's works.
Even if I starts new session in
/dev/pts/1, detatch from it and try to revive it, I got same error.