[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160511142251.GA30812@qarx.de>
Date: Wed, 11 May 2016 16:22:51 +0200
From: Felix von Leitner <felix-linuxkernel@...e.de>
To: LKML <linux-kernel@...r.kernel.org>
Subject: getting mysterious (to me) EINVAL from inotify_rm_watch
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
Powered by blists - more mailing lists