mirror of
				https://git.suyu.dev/suyu/suyu.git
				synced 2025-10-31 23:06:43 +08:00 
			
		
		
		
	Use execlp instead of execl to avoid failure
This commit is contained in:
		
							parent
							
								
									fd1ea0fd84
								
							
						
					
					
						commit
						56b0f979eb
					
				| @ -186,7 +186,7 @@ pid_t SpawnChild(const char* arg0) { | ||||
|         return pid; | ||||
|     } else if (pid == 0) { | ||||
|         // child
 | ||||
|         execl(arg0, arg0, nullptr); | ||||
|         execlp(arg0, arg0, nullptr); | ||||
|         const int err = errno; | ||||
|         fmt::print(stderr, "execl failed with error {}\n", err); | ||||
|         _exit(0); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user