Skip to content

Commit

Permalink
better signal handling logging
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@17835 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jan 3, 2018
1 parent f7b78b7 commit d7e0b8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/server/server_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1652,8 +1652,7 @@ def _process_printers(self, proto, packet):
ss.set_printers(printers, self.password_file, auth_class, self.encryption, self.encryption_keyfile)


def _process_command_signal(self, proto, packet):
log.info("%s", packet)
def _process_command_signal(self, _proto, packet):
pid = packet[1]
signame = packet[2]
if signame not in COMMAND_SIGNALS:
Expand All @@ -1671,6 +1670,7 @@ def _process_command_signal(self, proto, packet):
if not sigval:
log.error("Error: signal '%s' not found!", signame)
return
log.info("sending signal %s to pid %i", signame, pid)
try:
os.kill(pid, sigval)
except Exception as e:
Expand Down

0 comments on commit d7e0b8c

Please sign in to comment.