procd: show process's exit code
authorOndřej Votava <ondrej.votava@cvut.cz>
Thu, 23 Jan 2020 14:31:31 +0000 (15:31 +0100)
committerPetr Štetiar <ynezz@true.cz>
Fri, 24 Jan 2020 05:24:08 +0000 (06:24 +0100)
commit00aafc4f439ec3ace834c1a803b899bd1ceba9db
treed3b5455f3269cb81a5da28144ba6589e3b244328
parent856b5f8be04620c785b1af35cc16bc3f6d625a61
procd: show process's exit code

Adds feature to show exit code of processes launched by procd.
The exit code is shown for finished process when ubus's
service list method is called.

The exit code value is computed according to waitpid(2)
and http://tldp.org/LDP/abs/html/exitcodes.html

Signed-off-by: Ondřej Votava <ondrej.votava@cvut.cz>
service/instance.c
service/instance.h