~kennylevinsen/seatd-devel

seatd: don't log errno on EVENT_ERROR v1 APPLIED

Simon Ser: 1
 seatd: don't log errno on EVENT_ERROR

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~kennylevinsen/seatd-devel/patches/25899/mbox | git am -3
Learn more about email & git

[PATCH] seatd: don't log errno on EVENT_ERROR Export this patch

errno won't be set when poll returns EVENT_ERROR.
---
 seatd/server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/seatd/server.c b/seatd/server.c
index 03840fdd1343..5d7b84d20dc0 100644
--- a/seatd/server.c
+++ b/seatd/server.c
@@ -152,7 +152,7 @@ int server_handle_connection(int fd, uint32_t mask, void *data) {
	if (mask & (EVENT_ERROR | EVENT_HANGUP)) {
		shutdown(fd, SHUT_RDWR);
		server->running = false;
		log_errorf("Server socket received an error: %s", strerror(errno));
		log_errorf("Server socket received an error");
		return -1;
	}

-- 
2.33.1
Applied (after adjustment), thanks!