awesome-client: reconnect if disconnected

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-09-26 13:35:35 +02:00
parent 2dfde8c181
commit 6a295e8e8c
1 changed files with 2 additions and 0 deletions

View File

@ -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: