Rewrite control_event_signal() to use signal_table.
commit7bd671811ec38e8126ffc17cb922f2397c572cda
authorNick Mathewson <nickm@torproject.org>
Thu, 30 Jan 2020 14:29:07 +0000 (30 09:29 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 30 Jan 2020 14:29:07 +0000 (30 09:29 -0500)
tree167cc7e649fd7e61fc8702aabc6543e049d89b85
parentec7f99e6ef23f05d8fea4b8b63cc4f5ecc92eb33
Rewrite control_event_signal() to use signal_table.

When we added the ACTIVE and DORMANT virtual signals, we taught the
signal command to handle them, but we didn't teach SIGNAL event to
report them.

To solve this problem and prevent it from recurring, this patch
revises the implementation of control_event_signal() to use the same
signal_table that handle_control_signal() uses.  This way, the two
controller commands can't become out of sync.

Fixes bug 33104; bugfix on 0.4.0.1-alpha.
changes/bug33104 [new file with mode: 0644]
src/feature/control/control.c
src/feature/control/control_events.c