diff options
author | Peter Somogyi <psomogyi@gamax.hu> | 2007-04-20 14:26:19 +0200 |
---|---|---|
committer | Peter Somogyi <psomogyi@gamax.hu> | 2007-04-20 14:26:19 +0200 |
commit | e5f2e5e5eb56c390c68c1ac79a32fb068510fc41 (patch) | |
tree | 2051f1374b1a9743cbdd3643c84d6ee1d89ea376 /ctdb/common/ctdb_client.c | |
parent | c950e5285830eb14f0fced820bbb2ad8927c5421 (diff) | |
download | samba-e5f2e5e5eb56c390c68c1ac79a32fb068510fc41.tar.gz samba-e5f2e5e5eb56c390c68c1ac79a32fb068510fc41.tar.xz samba-e5f2e5e5eb56c390c68c1ac79a32fb068510fc41.zip |
- ctdb/ib minor bugfixes (error case)
- make ctdb capable of alternative connection (like ib) again, solved the fork problem
- do_debug memory overwrite bugfix (occured using ibwrapper_test with wrong address given)
(This used to be ctdb commit da0b84cda26d544f63841dfd770ed7ebad401944)
Diffstat (limited to 'ctdb/common/ctdb_client.c')
-rw-r--r-- | ctdb/common/ctdb_client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ctdb/common/ctdb_client.c b/ctdb/common/ctdb_client.c index f09894b555..f7dbc230db 100644 --- a/ctdb/common/ctdb_client.c +++ b/ctdb/common/ctdb_client.c @@ -373,7 +373,10 @@ int ctdb_set_message_handler(struct ctdb_context *ctdb, uint32_t srvid, /* if the domain socket is not yet open, open it */ if (ctdb->daemon.sd==-1) { - ux_socket_connect(ctdb); + if (ux_socket_connect(ctdb)) { + DEBUG(0, ("ux_socket_connect failed\n")); + return -1; + } } ZERO_STRUCT(c); |