nsh kill cmd can be executed with no signal option.

SIGTERM is the default signal, as in unix kill command.
nsh> kill [-<signal>] <pid>
This commit is contained in:
RoCorbera
2021-06-01 00:12:41 -03:00
committed by Alan Carvalho de Assis
parent 61ddfeba17
commit 42f4565129
2 changed files with 46 additions and 14 deletions

View File

@@ -261,7 +261,7 @@ static const struct cmdmap_s g_cmdmap[] =
#endif
#ifndef CONFIG_NSH_DISABLE_KILL
{ "kill", cmd_kill, 3, 3, "-<signal> <pid>" },
{ "kill", cmd_kill, 2, 3, "[-<signal>] <pid>" },
#endif
#ifndef CONFIG_DISABLE_MOUNTPOINT