Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __init__(self, space, *args):
- "NOT_RPYTHON"
- from pypy.module.signal import interp_signal
- MixedModule.__init__(self, space, *args)
- # add the signal-checking callback as an action on the space
- space.check_signal_action = interp_signal.CheckSignalAction(space)
- space.actionflag.register_periodic_action(space.check_signal_action,
- use_bytecode_counter=False)
- if space.reverse_debugging:
- from pypy.interpreter.reverse_debugging import RDBSignalActionFlag
- space.actionflag.__class__ = RDBSignalActionFlag
- else:
- space.actionflag.__class__ = interp_signal.SignalActionFlag
- # xxx yes I know the previous line is a hack
- print "loading module"
- if os.name == "nt":
- print "creating sigint event"
- interp_signal.create_sigint_event()
Add Comment
Please, Sign In to add comment