summaryrefslogtreecommitdiffstats
path: root/src/modules/module-udev-detect.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-07-28 01:35:19 +0200
committerLennart Poettering <lennart@poettering.net>2009-07-28 01:35:19 +0200
commit09e57c2ee9c731805e97f07771a18dfc4c917318 (patch)
treeef48805839f8bede8accef8c1eed47ef6a9e3372 /src/modules/module-udev-detect.c
parent835a2ae83a6cca344608ce9504f8d69da9d112fc (diff)
parent8343360da1d8d93e8e3818ab91e7f764a1c8c99e (diff)
Merge branch 'master' into master-tx
Diffstat (limited to 'src/modules/module-udev-detect.c')
-rw-r--r--src/modules/module-udev-detect.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/modules/module-udev-detect.c b/src/modules/module-udev-detect.c
index c8ec2bf9..11de1ccb 100644
--- a/src/modules/module-udev-detect.c
+++ b/src/modules/module-udev-detect.c
@@ -336,8 +336,18 @@ static int setup_inotify(struct userdata *u) {
pa_close(u->inotify_fd);
u->inotify_fd = -1;
- if (saved_errno == ENOENT)
+ if (saved_errno == ENOENT) {
+ pa_log_debug("/dev/snd/ is apparently not existing yet, retrying to create inotify watch later.");
return 0;
+ }
+
+ if (saved_errno == ENOSPC) {
+ pa_log("You apparently ran out of inotify watches, probably because Tracker/Beagle took them all away. "
+ "I wished people would do their homework first and fix inotify before using it for watching whole "
+ "directory trees which is something the current inotify is certainly not useful for. "
+ "Please make sure to drop the Tracker/Beagle guys a line complaining about their broken use of inotify.");
+ return 0;
+ }
pa_log("inotify_add_watch() failed: %s", pa_cstrerror(saved_errno));
return -1;