mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	udev: explain what happened when inotify_add_watch() returned ENOSPC, rhbz #513571
This commit is contained in:
		
							parent
							
								
									18433c19b6
								
							
						
					
					
						commit
						2bbdf631f8
					
				
					 1 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
					@ -336,8 +336,18 @@ static int setup_inotify(struct userdata *u) {
 | 
				
			||||||
        pa_close(u->inotify_fd);
 | 
					        pa_close(u->inotify_fd);
 | 
				
			||||||
        u->inotify_fd = -1;
 | 
					        u->inotify_fd = -1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (saved_errno == ENOENT)
 | 
					        if (saved_errno == ENOENT) {
 | 
				
			||||||
 | 
					            pa_log_debug("/dev/snd/ is apparently not existing yet, retrying to create inotify watch later.");
 | 
				
			||||||
            return 0;
 | 
					            return 0;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if (saved_errno == ENOSPC) {
 | 
				
			||||||
 | 
					            pa_log("You apparently ran out of inotify watches, probably because Tracker/Beagle took them all away. "
 | 
				
			||||||
 | 
					                   "I wished people would do their homework first and fix inotify before using it for watching whole "
 | 
				
			||||||
 | 
					                   "directory trees which is something the current inotify is certainly not useful for. "
 | 
				
			||||||
 | 
					                   "Please make sure to drop the Tracker/Beagle guys a line complaining about their broken use of inotify.");
 | 
				
			||||||
 | 
					            return 0;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        pa_log("inotify_add_watch() failed: %s", pa_cstrerror(saved_errno));
 | 
					        pa_log("inotify_add_watch() failed: %s", pa_cstrerror(saved_errno));
 | 
				
			||||||
        return -1;
 | 
					        return -1;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue