Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

process_signal.py 220B

1 year ago
123456789
  1. import signal
  2. import sys
  3. signal.signal(signal.SIGINT, signal.SIG_DFL)
  4. if getattr(signal, "SIGHUP", None) is not None:
  5. signal.signal(signal.SIGHUP, signal.SIG_DFL)
  6. print("ok, signal us")
  7. sys.stdin.read()
  8. sys.exit(1)