aboutsummaryrefslogtreecommitdiffstats
path: root/nldev.c
Commit message (Collapse)AuthorAgeFilesLines
* nldev: remove unused option for debugHEADmasterNatanael Copa2015-03-151-6/+1
|
* nldev: simplify by removing daemonizationNatanael Copa2015-03-151-10/+1
| | | | caller can handle that. (eg openrc/runit)
* pass over the netlink socket to handler instead of using a pipeNatanael Copa2015-03-151-119/+14
| | | | | | | | | hand over the netlink socket directly to the handler and let handler read from netlink instead of forwarding the message via pipe. This simplifies the logic of the longtime running netlink daemon and it simplifies the handling of partially read messages since all reading happens is done by the handler.
* nldev: set kernel buffer to 64kbNatanael Copa2015-03-121-1/+1
|
* nldev: don't do defensive programmingNatanael Copa2015-03-121-1/+0
|
* nldev: don't bother close netlink socket before exitNatanael Copa2015-03-121-4/+0
| | | | we let kernel clean that up for us
* nldev: don't bother shutdown on a socket we are about to closeNatanael Copa2015-03-121-4/+1
|
* nldev: close netlink filhandle on execNatanael Copa2015-03-121-0/+1
|
* nldev: remove disableoomNatanael Copa2015-03-121-19/+0
| | | | | | | | This logic does not need to be in the always-in-memory code. Instead, let the caller handle it. Something like this can be used: http://b0llix.net/perp/site.cgi?page=runchoom.8
* nldev: do not try trap SIGKILLNatanael Copa2015-03-121-2/+0
|
* forward the events to a helper process via pipeNatanael Copa2015-03-121-74/+58
| | | | | | | To reduce number of forks we pass over the events to a helper program via a pipe. when there are no events for a certain time the helper program can exit to save memory. Once new events arrives the nldev application will respawn the helper.
* move edie, die and dbg functions to log.cNatanael Copa2015-03-121-42/+2
| | | | So it can be reused by the handler.
* move netlink socket initialization to its own functionNatanael Copa2014-12-291-23/+35
| | | | improves readability
* Sanitizing env handling for children and using busbox for scripts.Christoph Lohmann2012-05-181-10/+2
|
* Fixing the dup handling of the child.Christoph Lohmann2012-05-021-4/+2
|
* Fixing dup typo in execl.Christoph Lohmann2012-05-021-1/+1
|
* Message error handling fixed at nl_pid and EINTR.Christoph Lohmann2012-04-281-9/+7
|
* Adding security and nasty comments.Christoph Lohmann2012-04-281-8/+59
|
* Initial commit.Christoph Lohmann2012-04-151-0/+288