/external/libdaemon/examples/ |
D | testd.c | 45 daemon_log(LOG_ERR, "Failed to reset all signal handlers: %s", strerror(errno)); in main() 51 daemon_log(LOG_ERR, "Failed to unblock all signals: %s", strerror(errno)); in main() 66 daemon_log(LOG_WARNING, "Failed to kill daemon: %s", strerror(errno)); in main() 73 daemon_log(LOG_ERR, "Daemon already running on PID file %u", pid); in main() 79 daemon_log(LOG_ERR, "Failed to create pipe."); in main() 95 … daemon_log(LOG_ERR, "Could not recieve return value from daemon process: %s", strerror(errno)); in main() 99 daemon_log(ret != 0 ? LOG_ERR : LOG_INFO, "Daemon returned %i as return value.", ret); in main() 108 daemon_log(LOG_ERR, "Failed to close all file descriptors: %s", strerror(errno)); in main() 117 daemon_log(LOG_ERR, "Could not create PID file (%s).", strerror(errno)); in main() 124 daemon_log(LOG_ERR, "Could not register signal handlers (%s).", strerror(errno)); in main() [all …]
|
/external/libdaemon/libdaemon/ |
D | dfork.c | 125 daemon_log(LOG_ERR, "dup(): %s", strerror(errno)); in move_fd_up() 148 daemon_log(LOG_ERR, "sigemptyset() failed: %s", strerror(errno)); in daemon_fork() 153 daemon_log(LOG_ERR, "sigaddset() failed: %s", strerror(errno)); in daemon_fork() 158 daemon_log(LOG_ERR, "sigaction() failed: %s", strerror(errno)); in daemon_fork() 163 daemon_log(LOG_ERR, "sigprocmask() failed: %s", strerror(errno)); in daemon_fork() 173 daemon_log(LOG_ERR, "pipe() failed: %s", strerror(errno)); in daemon_fork() 184 daemon_log(LOG_ERR, "First fork() failed: %s", strerror(errno)); in daemon_fork() 206 daemon_log(LOG_ERR, "close() failed: %s", strerror(errno)); in daemon_fork() 220 daemon_log(LOG_ERR, "Failed to open /dev/null for STDIN: %s", strerror(errno)); in daemon_fork() 225 daemon_log(LOG_ERR, "Failed to open /dev/null for STDOUT: %s", strerror(errno)); in daemon_fork() [all …]
|
D | dexec.c | 63 daemon_log(LOG_ERR, "pipe() failed: %s", strerror(errno)); in daemon_execv() 68 daemon_log(LOG_ERR, "fork() failed: %s", strerror(errno)); in daemon_execv() 83 daemon_log(LOG_ERR, "dup2: %s", strerror(errno)); in daemon_execv() 89 daemon_log(LOG_ERR, "dup2: %s", strerror(errno)); in daemon_execv() 103 daemon_log(LOG_ERR, "Unable to open /dev/null as STDIN"); in daemon_execv() 114 daemon_log(LOG_WARNING, "Failed to change to directory '%s'", dir); in daemon_execv() 125 daemon_log(LOG_ERR, "execv(%s) failed: %s", prog, strerror(errno)); in daemon_execv() 149 daemon_log(LOG_ERR, "select() failed: %s", strerror(errno)); in daemon_execv() 170 daemon_log(LOG_INFO, "client: %s", buf); in daemon_execv() 188 daemon_log(LOG_WARNING, "Killing child."); in daemon_execv() [all …]
|
D | dsignal.c | 53 daemon_log(LOG_ERR, "pipe(): %s", strerror(errno)); in _init() 74 daemon_log(LOG_ERR, "sigemptyset(): %s", strerror(errno)); in daemon_signal_install() 79 daemon_log(LOG_ERR, "sigaddset(): %s", strerror(errno)); in daemon_signal_install() 84 daemon_log(LOG_ERR, "sigprocmask(): %s", strerror(errno)); in daemon_signal_install() 94 daemon_log(LOG_ERR, "sigaction(%s, ...) failed: %s", strsignal(s), strerror(errno)); in daemon_signal_install() 149 daemon_log(LOG_ERR, "read(signal_pipe[0], ...): %s", strerror(errno)); in daemon_signal_next() 154 daemon_log(LOG_ERR, "Short read() on signal pipe."); in daemon_signal_next()
|
D | dpid.c | 92 daemon_log(LOG_WARNING, "fcntl(F_SETLKW) failed: %s", strerror(errno)); in lock_file() 116 daemon_log(LOG_WARNING, "Failed to open PID file: %s", strerror(errno)); in daemon_pid_file_is_running() 127 daemon_log(LOG_WARNING, "read(): %s", strerror(errno)); in daemon_pid_file_is_running() 141 daemon_log(LOG_WARNING, "PID file corrupt, removing. (%s)", fn); in daemon_pid_file_is_running() 149 …daemon_log(LOG_WARNING, "Process %lu died: %s; trying to remove PID file. (%s)", (unsigned long) p… in daemon_pid_file_is_running() 231 daemon_log(LOG_ERR, "open(%s): %s", fn, strerror(errno)); in daemon_pid_file_create() 247 daemon_log(LOG_WARNING, "write(): %s", strerror(errno)); in daemon_pid_file_create()
|
D | dlog.c | 46 daemon_log(LOG_ERR, "The value %d is not a valid priority value", verbosity_prio); in daemon_set_verbosity() 78 void daemon_log(int prio, const char* template, ...) { in daemon_log() function
|
D | dlog.h | 71 void daemon_log(int prio, const char* t, ...) DAEMON_GCC_PRINTF_ATTR(2,3);
|