mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +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 |         # Second fork | ||||||
|         try: |         try: | ||||||
|             if os.fork() > 0: |             if os.fork() > 0: | ||||||
|                 sys.exit(0) |                 os._exit(0) | ||||||
|         except OSError, e: |         except OSError, e: | ||||||
|             sys.stderr.write("fork #2 failed: (%d) %s\n" % (e.errno, e.strerror)) |             sys.stderr.write("fork #2 failed: (%d) %s\n" % (e.errno, e.strerror)) | ||||||
|             sys.exit(1) |             os._exit(1) | ||||||
|  |  | ||||||
|         si = open('/dev/null', 'r') |         si = open('/dev/null', 'r') | ||||||
|         so = open(out_log, 'a+', 0) |         so = open(out_log, 'a+', 0) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user