wmfsm: Read newly mounted filesystems.
Patch by Timo Benk <t_benk@web.de> to fix Debian bug #186826 [1]. [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?archive=yes&bug=186826
This commit is contained in:
		
							parent
							
								
									b143ff46a6
								
							
						
					
					
						commit
						3eb9307a7b
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
					@ -170,7 +170,6 @@ main(int argc, char *argv[])
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	myName = strdup(argv[0]);
 | 
						myName = strdup(argv[0]);
 | 
				
			||||||
	ParseCMDLine(argc, argv);
 | 
						ParseCMDLine(argc, argv);
 | 
				
			||||||
	readFileSystems();
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	openXwindow(argc, argv, wmfsm_master_xpm, wmfsm_mask_bits, wmfsm_mask_width, wmfsm_mask_height);
 | 
						openXwindow(argc, argv, wmfsm_master_xpm, wmfsm_mask_bits, wmfsm_mask_width, wmfsm_mask_height);
 | 
				
			||||||
| 
						 | 
					@ -188,6 +187,10 @@ main(int argc, char *argv[])
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
	while (1) {
 | 
						while (1) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							readFileSystems ();
 | 
				
			||||||
 | 
							usleep (100);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* 
 | 
							/* 
 | 
				
			||||||
		 *   Process any pending X events.
 | 
							 *   Process any pending X events.
 | 
				
			||||||
		 */
 | 
							 */
 | 
				
			||||||
| 
						 | 
					@ -518,6 +521,8 @@ readFileSystems()
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
#endif /* __OpenBSD__ || __FreeBSD__ */
 | 
					#endif /* __OpenBSD__ || __FreeBSD__ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						fclose (fp);
 | 
				
			||||||
	excludeFileSystems();
 | 
						excludeFileSystems();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue