mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Raise SystemExit instead of calling goaway().
This commit is contained in:
		
							parent
							
								
									5afc74757b
								
							
						
					
					
						commit
						6a468bf71c
					
				
					 1 changed files with 3 additions and 6 deletions
				
			
		|  | @ -96,12 +96,9 @@ sys_exit(self, args) | |||
| 	object *self; | ||||
| 	object *args; | ||||
| { | ||||
| 	int sts; | ||||
| 	if (!getintarg(args, &sts)) | ||||
| 	/* Raise SystemExit so callers may catch it or clean up. */ | ||||
| 	err_setval(SystemExit, args); | ||||
| 	return NULL; | ||||
| 	goaway(sts); | ||||
| 	exit(sts); /* Just in case */ | ||||
| 	/* NOTREACHED */ | ||||
| } | ||||
| 
 | ||||
| static struct methodlist sys_methods[] = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum