Felix Fietkau
|
902f904ed3
log: fix processing of incomplete lines
|
12 years ago |
Felix Fietkau
|
aaa5a702b7
fix container_of for the log ustream
|
12 years ago |
Felix Fietkau
|
435fe4ecb2
move uloop_process_delete call to get rid of an unnecessary check
|
12 years ago |
Felix Fietkau
|
e4784c7180
log: the ustream notify_state callback is now optional, remove the stub
|
12 years ago |
Felix Fietkau
|
363eee36e3
use ustream for process message logging
|
12 years ago |
Felix Fietkau
|
c173c61004
use FD_CLOEXEC instead of tracking lists of fds
|
12 years ago |
Felix Fietkau
|
a17e907f55
fix a file descriptor leak
|
12 years ago |
Felix Fietkau
|
bfe5db1ea8
add copyright headers
|
12 years ago |
Felix Fietkau
|
f4c907480f
simplify log buffer handling
|
12 years ago |
Felix Fietkau
|
17f3e46961
fix log buffer splitting
|
12 years ago |
Felix Fietkau
|
36dba9c4a9
fix log buffer overflow handling
|
12 years ago |
Felix Fietkau
|
9393ff39a8
always use SIGKILL for netifd_kill_process, it is usually a last resort
|
12 years ago |
Felix Fietkau
|
8f689d0981
in log read, check for EINTR instead of EAGAIN to avoid infinite loops
|
13 years ago |
Felix Fietkau
|
26486b46ea
try to grab log data more aggressively
|
13 years ago |
Felix Fietkau
|
6f19c791d4
fix segfaults in log line processing
|
13 years ago |
Felix Fietkau
|
268149290f
reduce stack usage
|
13 years ago |
Felix Fietkau
|
8699ae1f82
rename config_init_interfaces to config_init_all
|
13 years ago |
Felix Fietkau
|
7831c63091
remove the argument to config_init_interfaces
|
13 years ago |
Felix Fietkau
|
9b2cc549af
move log levels to netifd.h
|
13 years ago |
Felix Fietkau
|
6dfd44e127
fix interrupted read checks in log collection
|
13 years ago |
Felix Fietkau
|
cb9d737030
fix infinite loop in logging when the logged process dies
|
13 years ago |
Felix Fietkau
|
2f976c5391
add support for a user-configurable log level
|
13 years ago |
Felix Fietkau
|
39f9caf261
add support for logging messages via syslog (or optionally stdout)
|
13 years ago |
Felix Fietkau
|
b314737e9a
detach stdin/stdout/stderr from child processes, implement a separate logging pipe and relay log messages with prefix
|
13 years ago |
Felix Fietkau
|
6b3f6f4466
add support for tracking open file descriptors of modules and closing them for created child processes
|
13 years ago |
Felix Fietkau
|
8c4dface37
move netifd_start_process dir_fd to the data structure
|
13 years ago |
Felix Fietkau
|
39d99df085
when killed, kill pending child processes
|
13 years ago |
Felix Fietkau
|
745016bc4a
keep track of all running child processes in one place
|
13 years ago |
Felix Fietkau
|
41842d3f91
add some code for keeping track of dns servers and search domains and for writing resolv.conf
|
13 years ago |
Felix Fietkau
|
7c4108d49d
use /lib/netifd as main path when dummy mode is disabled
|
13 years ago |