# Fork bomb that ignores refused forks: the cgroup process limit must stop it. import os while True: try: os.fork() except OSError: pass