All of lore.kernel.org
 help / color / mirror / Atom feed
* getting mysterious (to me) EINVAL from inotify_rm_watch
@ 2016-05-11 14:22 Felix von Leitner
  2016-05-11 14:48 ` Peter Meerwald-Stadler
  0 siblings, 1 reply; 4+ messages in thread
From: Felix von Leitner @ 2016-05-11 14:22 UTC (permalink / raw)
  To: LKML

Hi,

I am trying to add inotify support to my tail implementation (for -F).
This is what happens:

  inotify_init()                          = 4
  inotify_add_watch(4, "/tmp/foo", IN_MODIFY) = 1
  inotify_rm_watch(4, 1)                  = -1 EINVAL (Invalid argument)
  inotify_add_watch(4, "/tmp/foo", IN_MODIFY) = 2

There is also some polling, some reading and some statting going on here, but
those are on other descriptors than 4 so they should not matter).

Can somebody explain the EINVAL I'm getting from inotify_rm_watch to me?

This is a stock kernel 4.5.0.

Thanks,

Felix

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-05-11 15:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-11 14:22 getting mysterious (to me) EINVAL from inotify_rm_watch Felix von Leitner
2016-05-11 14:48 ` Peter Meerwald-Stadler
2016-05-11 15:09   ` Felix von Leitner
2016-05-11 15:30   ` Felix von Leitner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.