inotify: document waiting behavior
authorDenis Vlasenko <vda.linux@googlemail.com>
Fri, 14 Nov 2008 21:52:16 +0000 (21:52 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Fri, 14 Nov 2008 21:52:16 +0000 (21:52 -0000)
include/usage.h
miscutils/inotifyd.c

index 9f735890660844be9fc0ba3eab4645ea31ea9ce1..69d37f923e66eea30e257a217ab7557c97deceb0 100644 (file)
 #define inotifyd_trivial_usage \
        "/user/space/agent dir/or/file/being/watched[:mask] ..."
 #define inotifyd_full_usage "\n\n" \
-       "Spawn userspace agent on filesystem changes." \
+       "Run userspace agent on filesystem changes." \
      "\nWhen a filesystem event matching the mask occurs" \
-     "\non specified file/directory an userspace agent is spawned" \
+     "\non specified file /user/space/agent is run" \
      "\nwith the parameters:" \
      "\n1. actual event(s)" \
-     "\n2. file/directory name" \
+     "\n2. file name" \
      "\n3. name of subfile (if any), in case of watching a directory" \
-     "\n" \
+     "\ninotify waits for agent to exit." \
+     "\nEvents:" \
      "\n       a       File is accessed" \
      "\n       c       File is modified" \
      "\n       e       Metadata changed" \
index 0c4b067846186aa14ad4ecf4bebd035e7a82d32e..216a696543e105f3685a456a49b6bd571a4d6b7c 100644 (file)
@@ -103,7 +103,7 @@ int inotifyd_main(int argc UNUSED_PARAM, char **argv)
                if (bb_got_signal)
                        break;
                n = poll(&pfd, 1, -1);
-               /* Signal interrupted us? */
+               // Signal interrupted us?
                if (n < 0 && errno == EINTR)
                        goto again;
                // Under Linux, above if() is not necessary.