server: log socket packet

This commit is contained in:
Daniel Eklöf 2019-12-13 22:28:48 +01:00
parent 5cd8af44c6
commit 6ef65058cf
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -338,7 +338,7 @@ server_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl)
break;
case CONNECT_SUCCESS:
LOG_ERR("foot --server already running");
LOG_ERR("%s is already accepting connections; is 'foot --server' already running", sock_path);
/* FALLTHROUGH */
case CONNECT_ERR:
@ -375,6 +375,8 @@ server_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl)
if (!fdm_add(fdm, fd, EPOLLIN, &fdm_server, server))
goto err;
LOG_INFO("accepting connections on %s", sock_path);
return server;
err: