]> err.no Git - systemd/commit
inotify_add_watch(): do not store watch, if it failed
authorKay Sievers <kay.sievers@vrfy.org>
Sun, 30 Aug 2009 18:42:06 +0000 (20:42 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Sun, 30 Aug 2009 18:42:06 +0000 (20:42 +0200)
commitebc1ba78edd35a5973f2671a80a71639f5949212
treef23cd55622f0ae3e207479b7da9ccd2d5f8ccb47
parentb0de6a63270998662cc069cc2ca1579776bb28df
inotify_add_watch(): do not store watch, if it failed

On Sun, Aug 30, 2009 at 04:36, Marco d'Itri<md@linux.it> wrote:
> 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
udev/udev-watch.c