From 3eb9307a7b17e3934e7afc0d42a6f81f85b9f767 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Thu, 22 Jan 2015 00:22:03 -0600 Subject: [PATCH] wmfsm: Read newly mounted filesystems. Patch by Timo Benk 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(); }