Patch by Timo Benk <[email protected]> to fix Debian bug #186826 [1].
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?archive=yes&bug=186826
---
wmfsm/wmfsm/wmfsm.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/wmfsm/wmfsm/wmfsm.c b/wmfsm/wmfsm/wmfsm.c
index f8d9458..a82e57f 100644
--- a/wmfsm/wmfsm/wmfsm.c
+++ b/wmfsm/wmfsm/wmfsm.c
@@ -170,7 +170,6 @@ main(int argc, char *argv[])
*/
myName = strdup(argv[0]);
ParseCMDLine(argc, argv);
- readFileSystems();
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
while (1) {
+
+ readFileSystems ();
+ usleep (100);
+
/*
* Process any pending X events.
*/
@@ -518,6 +521,8 @@ readFileSystems()
}
}
#endif /* __OpenBSD__ || __FreeBSD__ */
+
+ fclose (fp);
excludeFileSystems();
}
--
2.1.0
--
To unsubscribe, send mail to [email protected].