Skip to content
Permalink
Browse files

only include signals ruby has, who knows why

  • Loading branch information
alex committed Jul 1, 2013
1 parent 36fe9f2 commit 49d287b6079224b9552355e31fbb3ce23fee8e64
Showing with 11 additions and 0 deletions.
  1. +11 −0 topaz/modules/signal.py
@@ -5,9 +5,20 @@
from topaz.module import ModuleDef


RUBY_SIGNALS = [
"SIGHUP", "SIGINT", "SIGQUIT", "SIGILL", "SIGTRAP", "SIGIOT", "SIGABRT",
"SIGEMT", "SIGFPE", "SIGKILL", "SIGBUS", "SIGSEGV", "SIGSYS", "SIGPIPE",
"SIGALRM", "SIGTERM", "SIGURG", "SIGSTOP", "SIGTSTP", "SIGCONT", "SIGCHLD",
"SIGCLD", "SIGCHLD", "SIGTTIN", "SIGTTOU", "SIGIO", "SIGXCPU", "SIGXFSZ",
"SIGVTALRM", "SIGPROF", "SIGWINCH", "SIGUSR1", "SIGUSR2", "SIGLOST",
"SIGMSG", "SIGPWR", "SIGPOLL", "SIGDANGER", "SIGMIGRATE", "SIGPRE",
"SIGGRANT", "SIGRETRACT", "SIGSOUND", "SIGINFO",
]

SIGNALS = dict([
(k[3:], getattr(rsignal, k))
for k in rsignal.signal_names
if k in RUBY_SIGNALS
])
SIGNALS["EXIT"] = 0
SIGNALS["CLD"] = SIGNALS["CHLD"]

0 comments on commit 49d287b

Please sign in to comment.