mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	event-loop: fix conditional checking
Introduced in:
    commit 80f4f0d512
    Author: Jonas Ådahl <jadahl@gmail.com>
    Date:   Wed Mar 21 10:31:24 2012 +0100
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
			
			
This commit is contained in:
		
							parent
							
								
									a73c91585e
								
							
						
					
					
						commit
						a41fa8b3ec
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -293,7 +293,7 @@ wl_event_loop_add_signal(struct wl_event_loop *loop,
 | 
			
		|||
	sigemptyset(&mask);
 | 
			
		||||
	sigaddset(&mask, signal_number);
 | 
			
		||||
	fd = signalfd(-1, &mask, SFD_CLOEXEC);
 | 
			
		||||
	if (source->base.fd < 0) {
 | 
			
		||||
	if (fd < 0) {
 | 
			
		||||
		fprintf(stderr, "could not create fd to watch signal\n: %m");
 | 
			
		||||
		free(source);
 | 
			
		||||
		return NULL;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue