mirror of
https://github.com/troglobit/finit.git
synced 2026-10-13 10:14:47 +00:00
Add support for toggling the debug mode at runtime
This commit adds support for -d, --debug option to init, which can be used to toggle the finit debug mode at runtime. Signed-off-by: Mattias Walström <lazzer@gmail.com> Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
committed by
Joachim Nilsson
parent
c3b76fdccf
commit
5d04a72a61
@@ -107,6 +107,8 @@ static void parse(void *UNUSED(arg), int fd, int UNUSED(events))
|
||||
_d("Unsupported runlevel: %d", rq.runlevel);
|
||||
break;
|
||||
}
|
||||
} else if (rq.cmd == INIT_CMD_DEBUG) {
|
||||
debug = !debug;
|
||||
} else {
|
||||
_d("Unsupported cmd: %d", rq.cmd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user