diff options
author | Alexander Færøy <ahf@torproject.org> | 2018-11-28 21:55:04 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-12-17 16:39:28 -0500 |
commit | 5585cbd08f54f732c32feea276c1a47ec8446c5e (patch) | |
tree | 726a83a6ac0446247535e80856ad3f51a78e69b0 /src/lib/process/process.h | |
parent | 22cb3c6ce9164920ff81013d5f8dce3c26911af4 (diff) | |
download | tor-5585cbd08f54f732c32feea276c1a47ec8446c5e.tar.gz tor-5585cbd08f54f732c32feea276c1a47ec8446c5e.zip |
Change the Process exit_callback to return bool.
This patch changes our process_t's exit_callback to return a boolean
value. If the returned value is true, the process subsystem will call
process_free() on the given process_t.
See: https://bugs.torproject.org/28179
Diffstat (limited to 'src/lib/process/process.h')
-rw-r--r-- | src/lib/process/process.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/process/process.h b/src/lib/process/process.h index cb5bccbf7b..4b0fae4250 100644 --- a/src/lib/process/process.h +++ b/src/lib/process/process.h @@ -56,8 +56,8 @@ typedef uint64_t process_pid_t; typedef void (*process_read_callback_t)(process_t *, char *, size_t); -typedef void (*process_exit_callback_t)(process_t *, - process_exit_code_t); +typedef bool +(*process_exit_callback_t)(process_t *, process_exit_code_t); void process_init(void); void process_free_all(void); |