From 6a295e8e8cc6332dfa944e31a6f5f74e4733122c Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 26 Sep 2008 13:35:35 +0200 Subject: [PATCH] awesome-client: reconnect if disconnected Signed-off-by: Julien Danjou --- awesome-client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awesome-client.c b/awesome-client.c index a34aa3b4e..6e552efaf 100644 --- a/awesome-client.c +++ b/awesome-client.c @@ -100,6 +100,8 @@ send_msg(const char *msg, ssize_t msg_len) warn("can't write to %s", addr->sun_path); break; case EPIPE: + case ENOTCONN: + case ECONNRESET: sockets_reconnect(); return send_msg(msg, msg_len); default: