cmdmon: add shutdown command

The command is functionally equivalent to sending the process the
SIGTERM signal.
This commit is contained in:
Miroslav Lichvar
2018-03-02 12:51:52 +01:00
parent 8b1f68b1b4
commit 499f513d40
5 changed files with 35 additions and 4 deletions

View File

@@ -118,6 +118,7 @@ static const struct request_length request_lengths[] = {
{ 0, 0 }, /* ADD_PEER2 */
REQ_LENGTH_ENTRY(ntp_source, null), /* ADD_SERVER3 */
REQ_LENGTH_ENTRY(ntp_source, null), /* ADD_PEER3 */
REQ_LENGTH_ENTRY(null, null), /* SHUTDOWN */
};
static const uint16_t reply_lengths[] = {