From 6507136bdda4a1447b1099acd509286d116711f5 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Fri, 13 Jan 2017 07:54:48 +0100 Subject: [PATCH] reboot: Mention why CMD_SUSPEND is not managed in regular flow Signed-off-by: Joachim Nilsson --- reboot.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reboot.c b/reboot.c index 384b2a16..e3549e2b 100644 --- a/reboot.c +++ b/reboot.c @@ -195,6 +195,11 @@ int main(int argc, char *argv[]) break; case CMD_SUSPEND: + /* + * Only initctl supports suspend, we avoid adding + * another signal to finit for compat reasons. + */ + case CMD_UNKNOWN: errx(1, "Invalid command"); break;