]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
daemon/main: cleanup, forking and remote tty
authorMarek Vavruša <marek.vavrusa@nic.cz>
Mon, 29 Jun 2015 22:27:00 +0000 (00:27 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Mon, 29 Jun 2015 22:27:00 +0000 (00:27 +0200)
commit46122a59570cc4ec759c6afb5a1fc4f6af38a5a1
tree2424b1ac508f63f54d83706bf77fecc2f700024c
parent47ce4434344bd7ad3578ce73b34496ac8dcf651b
daemon/main: cleanup, forking and remote tty

when the daemon starts in non-interactive mode, it creates a pipe in the ‘tty/<pid>’ which can be used to interact with it remotely - much wow

e.g. $ socat - UNIX-CONNECT:tty/38284
daemon/engine.c
daemon/engine.h
daemon/lua/sandbox.lua
daemon/main.c