aboutsummaryrefslogtreecommitdiff
path: root/src/lib/process/process_unix.h
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2018-11-28 18:12:30 +0100
committerNick Mathewson <nickm@torproject.org>2018-12-17 16:39:28 -0500
commit22cb3c6ce9164920ff81013d5f8dce3c26911af4 (patch)
tree7959598dea4a1e50f64a40082f0820071b9d063e /src/lib/process/process_unix.h
parentbc6983afed24c0b83a49d2cef531dcc036245a04 (diff)
downloadtor-22cb3c6ce9164920ff81013d5f8dce3c26911af4.tar.gz
tor-22cb3c6ce9164920ff81013d5f8dce3c26911af4.zip
Call close() on stdin/stdout/stderr in process_terminate().
Call close() on all process handles after we have called kill(pid, SIGTERM). See: https://bugs.torproject.org/28179
Diffstat (limited to 'src/lib/process/process_unix.h')
-rw-r--r--src/lib/process/process_unix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/process/process_unix.h b/src/lib/process/process_unix.h
index e17c59ea81..86c10d7449 100644
--- a/src/lib/process/process_unix.h
+++ b/src/lib/process/process_unix.h
@@ -60,6 +60,7 @@ STATIC void process_unix_setup_handle(process_t *process,
STATIC int process_unix_read_handle(process_t *,
process_unix_handle_t *,
buf_t *);
+STATIC bool process_unix_close_file_descriptors(process_unix_t *);
#endif /* defined(PROCESS_UNIX_PRIVATE). */
#endif /* defined(_WIN32). */