Be more verbose when bind or listen fails

Also be more verbose in devnode_acl_all().
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2014-07-18 21:44:59 -04:00
parent 3fb97a58fa
commit 6b9732b2bf
6 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -554,7 +554,7 @@ static int manager_setup_notify(Manager *m) {
strncpy(sa.un.sun_path, m->notify_socket, sizeof(sa.un.sun_path)-1);
r = bind(fd, &sa.sa, offsetof(struct sockaddr_un, sun_path) + strlen(sa.un.sun_path));
if (r < 0) {
log_error("bind() failed: %m");
log_error("bind(@%s) failed: %m", sa.un.sun_path+1);
return -errno;
}