Skip to content

Commit

Permalink
#3099 assume the server removed its pid
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Dec 16, 2021
1 parent c6b73d3 commit 9f6234c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/scripts/main.py
Expand Up @@ -3108,14 +3108,14 @@ def get_display_info(display):
display_info.update(wminfo)
mode = wminfo.get("xpra-server-mode", "")
#seamless servers and non-xpra servers should have a window manager:
if (mode.find("seamless")>=0) and not wminfo.get("_NET_SUPPORTING_WM_CHECK"):
if mode.find("seamless")>=0 and not wminfo.get("_NET_SUPPORTING_WM_CHECK"):
display_info["state"] = "DEAD"
else:
wmname = wminfo.get("wmname")
if wmname and wmname.lower().find("xpra")>=0:
#check if the xpra server process still exists:
pid = wminfo.get("xpra-server-pid")
if pid and os.path.exists("/proc") and not os.path.exists("/proc/%s" % pid):
if not pid or (os.path.exists("/proc") and not os.path.exists("/proc/%s" % pid)):
display_info["state"] = "DEAD"
else:
display_info.update({"state" : "UNKNOWN"})
Expand Down

0 comments on commit 9f6234c

Please sign in to comment.