]> git.neil.brown.name Git - susman.git/commitdiff
lsusd: create the initial 'watchers' file.
authorNeilBrown <neilb@suse.de>
Sun, 22 Apr 2012 04:18:03 +0000 (14:18 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 22 Apr 2012 04:18:03 +0000 (14:18 +1000)
I wonder how I managed not to have that already.

Signed-off-by: NeilBrown <neilb@suse.de>
lsusd.c

diff --git a/lsusd.c b/lsusd.c
index 53a7fe3c352de2f1ff0497c1c48873bc2ae67a47..42b1b5cd6a7927c5e604ecc47dc05a359a2275b0 100644 (file)
--- a/lsusd.c
+++ b/lsusd.c
@@ -193,6 +193,10 @@ main(int argc, char *argv)
        if (dir < 0 || disable < 0)
                exit(1);
 
+       /* Create the initial files */
+       alert_watchers();
+       cycle_watchers();
+
        close(0);
 
        while (1) {