mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-31 04:57:25 +01:00 
			
		
		
		
	t-runner: Replaced process kill signal
This commit is contained in:
		
							parent
							
								
									b4e3c0d45d
								
							
						
					
					
						commit
						d9744f3824
					
				| @ -347,13 +347,13 @@ static void kill_process(pid_t pid) | ||||
| { | ||||
| 	int status; | ||||
| 
 | ||||
| 	kill(pid, SIGKILL); | ||||
| 	l_info("Terminate pid: %d", pid); | ||||
| 
 | ||||
| 	kill(pid, SIGTERM); | ||||
| 
 | ||||
| 	do { | ||||
| 		waitpid(pid, &status, 0); | ||||
| 	} while (!WIFEXITED(status) && !WIFSIGNALED(status)); | ||||
| 
 | ||||
| 	l_info("Process terminated: %d\n", pid); | ||||
| } | ||||
| 
 | ||||
| static bool wait_for_socket(const char *socket, useconds_t wait_time) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tim Kourt
						Tim Kourt