mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-01 06:01:14 +00:00 
			
		
		
		
	Fix wrong exit code being returned
(cherry picked from commit 0d3a168a53)
			
			
This commit is contained in:
		
							parent
							
								
									203d6375fc
								
							
						
					
					
						commit
						126d08e33d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -357,7 +357,7 @@ Error OS_Unix::execute(const String &p_path, const List<String> &p_arguments, bo | |||
| 		int status; | ||||
| 		waitpid(pid, &status, 0); | ||||
| 		if (r_exitcode) | ||||
| 			*r_exitcode = WEXITSTATUS(status); | ||||
| 			*r_exitcode = WIFEXITED(status) ? WEXITSTATUS(status) : status; | ||||
| 
 | ||||
| 	} else { | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ev1lbl0w
						Ev1lbl0w