Critical logs: avoid leaving zombie processes 52/223652/5
authorMichal Bloch <m.bloch@samsung.com>
Fri, 31 Jan 2020 12:51:45 +0000 (13:51 +0100)
committerMichal Bloch <m.bloch@samsung.com>
Mon, 3 Feb 2020 11:45:37 +0000 (12:45 +0100)
commit2f246e51e521c7138952ac5c0f53feae5ce209f4
tree630751e20d1aa1e7bae0116ee35994744975acbb
parent7e49b072c2047b823daa84106a3977f80de259be
Critical logs: avoid leaving zombie processes

libdlog doesn't really want to wait for the writer child process,
so now it leaves reaping it to init through the double fork idiom,
where the worker process is actually a grandchild and the immediate
child exists just to die and be reaped immediately.

Change-Id: I7a5c903f55b0ccd0f56824a228ee69f21ed87cac
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/libdlog/log.c