On Monday 01 May 2023 09:45:16 pm J Leslie Turriff via tde-users wrote:
On 2023-05-01 20:25:55 E. Liddell via tde-users wrote:
On Mon, 1 May 2023 17:30:24 -0500
No, no. --all-sessions always succeeds, but then there is no way to determine if one of the sessions that it returns is dead or not, except by sending a message to each. If I send a message to one that is dead the script will hang. It would be nice if it returned a status code (or anything) instead of hanging.
It's been since forever since I did anything with DCOP. If I read right up thread you're doing this a root? So is there anyway to get the PID(s), check which are zombies, then just kill them? Here's some commands to start with (which you probably already know ;)
ps aux | grep -i dcop
ps aux | awk '$8 ~ /^[Zz]/'
^ last command blatently stolen from https://itsfoss.com/kill-zombie-process-linux/
Best, Michael