mirror of
https://github.com/sheumann/hush.git
synced 2025-01-04 22:34:37 +00:00
inotify: document waiting behavior
This commit is contained in:
parent
b0e5d42d4f
commit
289ff0e341
@ -1840,14 +1840,15 @@
|
|||||||
#define inotifyd_trivial_usage \
|
#define inotifyd_trivial_usage \
|
||||||
"/user/space/agent dir/or/file/being/watched[:mask] ..."
|
"/user/space/agent dir/or/file/being/watched[:mask] ..."
|
||||||
#define inotifyd_full_usage "\n\n" \
|
#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" \
|
"\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:" \
|
"\nwith the parameters:" \
|
||||||
"\n1. actual event(s)" \
|
"\n1. actual event(s)" \
|
||||||
"\n2. file/directory name" \
|
"\n2. file name" \
|
||||||
"\n3. name of subfile (if any), in case of watching a directory" \
|
"\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 a File is accessed" \
|
||||||
"\n c File is modified" \
|
"\n c File is modified" \
|
||||||
"\n e Metadata changed" \
|
"\n e Metadata changed" \
|
||||||
|
@ -103,7 +103,7 @@ int inotifyd_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
if (bb_got_signal)
|
if (bb_got_signal)
|
||||||
break;
|
break;
|
||||||
n = poll(&pfd, 1, -1);
|
n = poll(&pfd, 1, -1);
|
||||||
/* Signal interrupted us? */
|
// Signal interrupted us?
|
||||||
if (n < 0 && errno == EINTR)
|
if (n < 0 && errno == EINTR)
|
||||||
goto again;
|
goto again;
|
||||||
// Under Linux, above if() is not necessary.
|
// Under Linux, above if() is not necessary.
|
||||||
|
Loading…
Reference in New Issue
Block a user