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:
parent
55de6c56ce
commit
f9191c061a
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user