From mboxrd@z Thu Jan 1 00:00:00 1970 From: md@Linux.IT (Marco d'Itri) Date: Sun, 30 Aug 2009 02:36:36 +0000 Subject: return value of inotify_add_watch() Message-Id: <20090830023636.GA12825@bongo.bofh.it> MIME-Version: 1 Content-Type: multipart/mixed; boundary="IS0zKkzwUGydFO0o" List-Id: To: linux-hotplug@vger.kernel.org --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable inotify_add_watch may fail in udev_watch_begin, and then a link with name -1 is created. I do not know why, but it happened once on my system: lrwxrwxrwx 1 root root 27 Aug 4 11:27 -1 -> /devices/virtual/block/ram8 Then udev would log an error every time it was restarted: Aug 30 04:17:20 bongo udevd[12451]: unable to move watches dir '/dev/.udev/= watch', old watches will not be restored: Directory not empty Maybe the content of the .old directory should also be deleted. --=20 ciao, Marco --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkqZ5bQACgkQFGfw2OHuP7Eg+wCfWLokJAYH/pUcJguY5hONBzo9 FUEAoKEc8+dsW1E8oT+XZFMDuf8IU2XV =9jxZ -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o--