mirror of
				https://github.com/django/django.git
				synced 2025-10-30 09:06:13 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user