mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	sway exec command: use waitpid instead of wait
This commit is contained in:
		
							parent
							
								
									2477930d90
								
							
						
					
					
						commit
						d26a0a1a6e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -73,7 +73,7 @@ struct cmd_results *cmd_exec_always(int argc, char **argv) {
 | 
			
		|||
	}
 | 
			
		||||
	close(fd[0]);
 | 
			
		||||
	// cleanup child process
 | 
			
		||||
	wait(0);
 | 
			
		||||
	waitpid(pid, NULL, 0);
 | 
			
		||||
	if (*child > 0) {
 | 
			
		||||
		wlr_log(L_DEBUG, "Child process created with pid %d", *child);
 | 
			
		||||
		// TODO: add PID to active workspace
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue