Skip to content

Commit

Permalink
we already have SIGNAMES, don't hard-code new ones
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@9400 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 18, 2015
1 parent c3aee42 commit 6e6aa86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/scripts/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import traceback

from xpra.scripts.main import TCP_NODELAY, warn
from xpra.os_util import SIGNAMES
from xpra.dotxpra import DotXpra, ServerSockInUse


Expand Down Expand Up @@ -49,7 +50,7 @@ def add_cleanup(f):


def deadly_signal(signum, frame):
sys.stdout.write("got deadly signal %s, exiting\n" % {signal.SIGINT:"SIGINT", signal.SIGTERM:"SIGTERM"}.get(signum, signum))
sys.stdout.write("got deadly signal %s, exiting\n" % SIGNAMES.get(signum, signum))
sys.stdout.flush()
run_cleanups()
# This works fine in tests, but for some reason if I use it here, then I
Expand Down

0 comments on commit 6e6aa86

Please sign in to comment.