}
if (inotify_add_watch(notify, flag_file, IN_ATTRIB /* for the link count */) < 0) {
+ log_error("Failed to add watch on %s: %m", flag_file);
r = -errno;
goto finish;
}
}
if (!(c = strdup(sa.un.sun_path))) {
- r = -ENOMEM;
- log_error("Out of memory");
+ r = log_oom();
goto fail;
}