screenでデタッチできないというのを書いたが、解決法発見。 デタッチできないというよりも、むしろアタッチできないという方が正しい表現だったようだ。 これはscreenの問題ではなく、回線が切れたときにsshセッションが切れず、sshdプロセスが生きたままで、その応答待ちでscreenがattachedから変化しない模様。 以下、対処法。 $ ps x | grep pts | grep sshd 13819 ? S 0:00 sshd: kero@pts/2 13985 ? S 0:00 sshd: kero@pts/8 14595 pts/2 S+ 0:00 grep sshd grepが走っているpts/2が現在操作中のポートなので、pts/8を落とす。 $ kill -KILL 13985 $ screen -ls There is a screen on: 9120.pts-0
![screenでデタッチできない 解決編](https://cdn-ak-scissors.b.st-hatena.com/image/square/66e9eed88190d229a0ee134c5fcab24cf40d99c7/height=288;version=1;width=512/https%3A%2F%2Fmo.kerosoft.com%2Fpub-dist%2Fdefault-logo.png)