summaryrefslogtreecommitdiffstats
path: root/libdaemon/server/daemon-server.c
Commit message (Collapse)AuthorAgeFilesLines
* clvmd,lvmetad: check for fcntl resultZdenek Kabelac2012-08-231-1/+2
| | | | Report any problem of fcntl.
* 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.
* libdaemon: Draft logging infrastructure.Petr Rockai2012-08-081-7/+16
| | | | | | | | | | | - 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
* 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-221-5/+2
| | | | | 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-271-1/+4
| | | | Also check the return value as it meaningless to work with truncated strings.
* strcpy -> strncpy in common daemon code.Peter Rajnoha2012-04-101-1/+1
|
* 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-011-2/+3
| | | | Adding (void) where we cannot really report an error.
* Reflect new file locations, include file updates etc.Alasdair Kergon2012-02-281-4/+4
|
* move daemon filesAlasdair Kergon2012-02-281-0/+522