mirror of https://github.com/mkerrisk/man-pages
inotify.7: Note buffer size that guarantees being able to read at least one event
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
655684a9d9
commit
4ba272b3e0
|
@ -158,6 +158,12 @@ returns 0; since kernel 2.6.21,
|
|||
.BR read (2)
|
||||
fails with the error
|
||||
.BR EINVAL .
|
||||
Specifying a buffer of size
|
||||
|
||||
sizeof(struct inotify_event) + NAME_MAX + 1
|
||||
|
||||
will be sufficient to read at least one event.
|
||||
|
||||
.SS inotify events
|
||||
The
|
||||
.BR inotify_add_watch (2)
|
||||
|
|
Loading…
Reference in New Issue