Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to kill a dead screen session?

Originally posted in Unix and Linux community but no correct answer after a couple of days. I will move the answer there if I get the answer from here. Thanks!

How do I kill a dead screen session?

[allen@mmbp ~]$ screen -ls
There is a screen on:
    3634.wb_backend (Dead ???)
Remove dead screens with 'screen -wipe'.
1 Socket in /var/run/screen/S-allen.

I tried screen -X -S 3634.wb_backend quit and here is the result:

There is a screen on:
3634.wikibrain_backend  (Dead ???)
Remove dead screens with 'screen -wipe'.
No screen session found.

I tried screen -S -X wb_backend kill and here is the result: mkfifo /var/run/screen/S-allen/27272.-X failed

This (Dead ???) session used to be an Attached session and I used:

screen -X -S 3634.wb_backend kill

to kill it. It ended up to be in this weird status.

I have tried:

screen -wipe

but it didn't work.

How could I terminate it?

like image 966
Allen Lin Avatar asked Oct 23 '25 21:10

Allen Lin


1 Answers

screen -wipe PID

will wipe the dead screen.

like image 76
Dinesh B Avatar answered Oct 27 '25 02:10

Dinesh B