summaryrefslogtreecommitdiffstats
path: root/libdaemon
Commit message (Collapse)AuthorAgeFilesLines
* clvmd,lvmetad: check for fcntl resultZdenek Kabelac2012-08-231-1/+2
| | | | Report any problem of fcntl.
* cleanup: add va_endZdenek Kabelac2012-08-231-5/+7
| | | | Pair va_start with va_end.
* cleanup: add standard GPL file headerZdenek Kabelac2012-08-231-1/+25
| | | | Add FIXME about DEBUG define colission.
* cleanup: use <> for system header fileZdenek Kabelac2012-08-231-1/+1
|
* lvmetad: do not deref NULL pointerZdenek Kabelac2012-08-231-1/+3
| | | | Call log only for req.cft != NULL.
* lvmetad: fix memleak on error pathZdenek Kabelac2012-08-231-1/+3
| | | | Release allocated buffer on error path.
* lvmetad: fix memleaksZdenek Kabelac2012-08-231-1/+6
| | | | Release allocated buffers in daemon_logf, daemon_log_parse
* libdaemon: Draft logging infrastructure.Petr Rockai2012-08-085-9/+211
| | | | | | | | | | | - logging is not controlled by "levels" but by "types"; types are independent of each other... implementation of the usual "log level" user-level semantics can be simply done on top; the immediate application is enabling/disabling wire traffic logging independently of other debug data, since the former is rather bulky and can easily obscure almost everything else - all logs go to "outlets", of which we currently have 2: syslog and stderr; which "types" go to which "outlets" is entirely configurable
* [lvmetad] Continue reading/writing on EINTRMarian Csontos2012-08-021-4/+4
|
* lvmetad: Skip redundant checks on no inputMarian Csontos2012-08-021-14/+13
|
* daemon-server: fix error message on daemon shutdownPeter Rajnoha2012-07-191-1/+1
| | | | | | | | | | If a daemon (like lvmetad that is using common daemon-server code) received a kill signal that was supposed to shut the daemon down, a spurious message was issued: "Failed to handle a client connection". This happened if the kill signal came just in the middle of waiting for a client request in "select" - the request that was supposed to be handled was blank at that moment of course.
* cleanup: replace memset with struct initilizationZdenek Kabelac2012-06-222-8/+4
| | | | | Simplifies the code, properly detects too long socket paths, drops unused parameter.
* Use dm_strncpy instead of plain strncpy while setting the socket path.Peter Rajnoha2012-04-272-2/+8
| | | | Also check the return value as it meaningless to work with truncated strings.
* strcpy -> strncpy in common daemon code.Peter Rajnoha2012-04-102-2/+2
|
* Do exit if LISTEN_PID environment variable not correct during systemd handover.Peter Rajnoha2012-03-161-1/+1
|
* Use SD_ACTIVATION env. var. in systemd units to better detect systemd in use.Peter Rajnoha2012-03-141-0/+6
| | | | | | | | LISTEN_PID and LISTEN_FDS environment variables are defined only during systemd "start" action. But we still need to know whether we're activated during "reload" action as well - we use the reload action to call "dmeventd -R"/"lvmetad -R" for statefull daemon restart. We can't use normal "restart" as that is simply composed of "stop" and "start" and we would lose any state the daemon has.
* Do not unlink the socket on daemon shutdown if activation is done via systemd.Peter Rajnoha2012-03-081-1/+2
|
* Few more close and dev_close traceZdenek Kabelac2012-03-012-3/+5
| | | | Adding (void) where we cannot really report an error.
* Use 64 bit integers whenever extracting numbers from daemon replies.Petr Rockai2012-03-011-2/+2
|
* Reflect new file locations, include file updates etc.Alasdair Kergon2012-02-286-12/+67
|
* move daemon filesAlasdair Kergon2012-02-286-0/+982
|
* new makefilesAlasdair Kergon2012-02-282-0/+42
|
* Series of commits to move daemon code into separate top-level dir andAlasdair Kergon2012-02-281-0/+29
fix build deps etc.