code: def handle_child_crash():
      
      tty = open('/dev/tty', 'wb')
      tty.write('\n\nFORKED CHILD PID %d CRASHED\n%s\n\n' % (
          os.getpid(),
          traceback.format_exc(),
      ))
      tty.close()
      os._exit(1)
docs: Respond to _child_main() crashing by ensuring the relevant exception is
      logged to /dev/tty.