| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Report any problem of fcntl.
|
|
|
|
| |
Pair va_start with va_end.
|
|
|
|
| |
Add FIXME about DEBUG define colission.
|
| |
|
|
|
|
| |
Call log only for req.cft != NULL.
|
|
|
|
| |
Release allocated buffer on error path.
|
|
|
|
| |
Release allocated buffers in daemon_logf, daemon_log_parse
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Simplifies the code, properly detects too long socket paths,
drops unused parameter.
|
|
|
|
| |
Also check the return value as it meaningless to work with truncated strings.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Adding (void) where we cannot really report an error.
|
| |
|
| |
|
| |
|
| |
|
|
fix build deps etc.
|