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_linger.py 297B

1234567891011121314151617
  1. """Write to a file descriptor and then close it, waiting a few seconds before
  2. quitting. This serves to make sure SIGCHLD is actually being noticed.
  3. """
  4. import os
  5. import sys
  6. import time
  7. print("here is some text")
  8. time.sleep(1)
  9. print("goodbye")
  10. os.close(1)
  11. os.close(2)
  12. time.sleep(2)
  13. sys.exit(0)