[systemd-devel] [PATCH] log_error(), if inotify_add_watch() fails

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Wed Feb 13 07:16:09 PST 2013


On Wed, Feb 13, 2013 at 03:09:36PM +0100, harald at redhat.com wrote:
>                  k = inotify_add_watch(fd, "/run/systemd/seats/", IN_MOVED_TO|IN_DELETE);
>                  if (k < 0) {
> +                        log_error("Failed to watch /run/systemd/seats/: %m");
>                          close_nointr_nofail(fd);
Applied. I changed /Failed to watch/ to /Failed to add watch on/. I think it
makes the message slightly clearer.

Zbyszek


More information about the systemd-devel mailing list