Make sure we call process_notify_event_exit() as the last thing in different callbacks.
commit338137221c8bd89f6d611c0cd3bf7b8a85d02517
authorAlexander Færøy <ahf@torproject.org>
Thu, 22 Nov 2018 17:14:03 +0000 (22 18:14 +0100)
committerNick Mathewson <nickm@torproject.org>
Mon, 17 Dec 2018 21:39:28 +0000 (17 16:39 -0500)
tree96eb8ee8c084a4ab9ece6ba06bbdc89300dccc32
parente982fb1dae6ff0888ae419246578048470dd65b8
Make sure we call process_notify_event_exit() as the last thing in different callbacks.

This patch makes sure that we call process_notify_event_exit() after we
have done any modifications we need to do to the state of a process_t.
This allows application developers to call process_free() in the
exit_callback of the process.

See: https://bugs.torproject.org/28179
src/lib/process/process_unix.c
src/lib/process/process_win32.c