Skip to content

Commit

Permalink
#2025: make it possible to disable the signal watcher code
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@20929 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 4, 2018
1 parent 5134109 commit a94d004
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xpra/client/mixins/window_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
SAVE_WINDOW_ICONS = envbool("XPRA_SAVE_WINDOW_ICONS", False)
SAVE_CURSORS = envbool("XPRA_SAVE_CURSORS", False)
MODAL_WINDOWS = envbool("XPRA_MODAL_WINDOWS", False)
SIGNAL_WATCHER = envbool("XPRA_SIGNAL_WATCHER", False)


DRAW_TYPES = {bytes : "bytes", str : "bytes", tuple : "arrays", list : "arrays"}
Expand Down Expand Up @@ -748,6 +749,8 @@ def should_force_grab(self, metadata):
######################################################################
# listen for process signals using a watcher process:
def assign_signal_watcher_pid(self, wid, pid):
if not SIGNAL_WATCHER:
return 0
if not POSIX or OSX or not pid:
return 0
proc = self._pid_to_signalwatcher.get(pid)
Expand Down

0 comments on commit a94d004

Please sign in to comment.