Commit 4b9497c3 authored by Malcolm Tredinnick's avatar Malcolm Tredinnick
Browse files

Fixed #6175 -- Use os._exit() instead of sys.exit() in child processes. Based

on a patch from Tyson Clugg.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7290 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 1b331f6c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -18,10 +18,10 @@ if os.name == 'posix':
        # Second fork
        try:
            if os.fork() > 0:
                sys.exit(0)
                os._exit(0)
        except OSError, e:
            sys.stderr.write("fork #2 failed: (%d) %s\n" % (e.errno, e.strerror))
            sys.exit(1)
            os._exit(1)

        si = open('/dev/null', 'r')
        so = open(out_log, 'a+', 0)