Petr Rockai
dc5ba5c392
Fix an error path in daemon_open.
2012-02-24 00:02:54 +00:00
Petr Rockai
3f694b1265
Couple of improvements in the daemon (common + lvmetad) code:
...
- some client-side memory leak fixes
- announce and check protocols and protocol versions
2012-02-23 23:52:11 +00:00
Petr Rockai
351aefc8a0
Do not forget to initialise the error value in daemon_reply.
2012-02-15 09:14:54 +00:00
Zdenek Kabelac
5f3191097d
Ensure reply struct has all fields defined
...
Reply is returned by value.
2012-01-25 21:31:59 +00:00
Petr Rockai
d528658f97
Fix prototypes for daemon_send_simple (const char).
2012-01-15 15:16:50 +00:00
Zdenek Kabelac
ade2b9345f
Cleanup for lvmetad passing uninit structure
...
Shown by clang analyzer.
2011-10-30 21:58:59 +00:00
Zdenek Kabelac
6d40458530
More gcc warnings removed
2011-09-17 14:49:18 +00:00
Petr Rockai
6e4e30827d
Fix warnings in daemons/common.
2011-08-31 12:18:40 +00:00
Petr Rockai
c033ea0170
Adapt the daemon/common code to use the new dm_config interface.
2011-08-30 15:42:56 +00:00
Petr Rockai
14e012871f
Differentiate the request and response format, in daemon/common.
2011-06-29 22:20:14 +00:00
Petr Rockai
aaca7f111f
Also parse the config_tree on the client end (daemon-client.c).
2011-06-27 13:58:11 +00:00
Petr Rockai
55e300716f
Parse the incoming config tree in daemon-server.c, providing the
...
daemon-specific handler with a struct config_tree pointer to look things up in.
2011-06-27 13:46:45 +00:00
Petr Rockai
308963261c
Do not open the socket with SOCK_NONBLOCK in daemon-client, since we have no
...
use for that behaviour (at least for now).
2011-06-27 13:14:53 +00:00
Petr Rockai
92658f5661
Common daemon code: Implement basic socket-based communication infrastructure
...
(both client and server side). The server handles each connection in a separate
thread.
2011-06-14 02:34:18 +00:00