1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

client: Exit with non-zero status when unix socket is closed

Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 733fc909425860f6a02c205c2d8f34a731853922)
This commit is contained in:
Amitay Isaacs 2013-06-24 17:37:15 +10:00
parent 55de6c56ce
commit f9191c061a

View File

@ -207,8 +207,8 @@ void ctdb_client_read_cb(uint8_t *data, size_t cnt, void *args)
talloc_steal(tmp_ctx, hdr);
if (cnt == 0) {
DEBUG(DEBUG_INFO,("Daemon has exited - shutting down client\n"));
exit(0);
DEBUG(DEBUG_CRIT,("Daemon has exited - shutting down client\n"));
exit(1);
}
if (cnt < sizeof(*hdr)) {