mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	src/common/spawn.c: Restore SIGPIPE default handler before exec
Fixes: #1209 Reported-by: @bdantas
This commit is contained in:
		
							parent
							
								
									0430f6f818
								
							
						
					
					
						commit
						d2c403b84f
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -46,6 +46,8 @@ spawn_async_no_shell(char const *command)
 | 
			
		|||
		sigset_t set;
 | 
			
		||||
		sigemptyset(&set);
 | 
			
		||||
		sigprocmask(SIG_SETMASK, &set, NULL);
 | 
			
		||||
		/* Restore ignored signals */
 | 
			
		||||
		signal(SIGPIPE, SIG_DFL);
 | 
			
		||||
		grandchild = fork();
 | 
			
		||||
		if (grandchild == 0) {
 | 
			
		||||
			execvp(argv[0], argv);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue