Ticket #6175: 6175_second_patch.diff

File 6175_second_patch.diff, 477 bytes (added by Leo Shklovskii, 17 years ago)
  • django/utils/daemonize.py

     
    1818        # Second fork
    1919        try:
    2020            if os.fork() > 0:
    21                 sys.exit(0)
     21                os._exit(0)
    2222        except OSError, e:
    2323            sys.stderr.write("fork #2 failed: (%d) %s\n" % (e.errno, e.strerror))
    2424            sys.exit(1)
Back to Top