From 54ecceaf1eaf586ecd0fcada56ccd2aab580e101 Mon Sep 17 00:00:00 2001 From: Vladislavs Sokurenko Date: Tue, 30 Oct 2018 11:54:36 +0000 Subject: ...G...PS. [ZBX-15027] fixed restart failures due to orphaned or zombie processes remaining when zabbix daemon is terminated during startup --- include/threads.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/threads.h') diff --git a/include/threads.h b/include/threads.h index 4f0e09c7be2..89f2bf53529 100644 --- a/include/threads.h +++ b/include/threads.h @@ -48,7 +48,7 @@ #else /* not _WINDOWS */ int zbx_fork(void); - int zbx_child_fork(void); + void zbx_child_fork(pid_t *pid); #define ZBX_THREAD_ERROR -1 @@ -84,8 +84,8 @@ typedef struct } zbx_thread_args_t; -ZBX_THREAD_HANDLE zbx_thread_start(ZBX_THREAD_ENTRY_POINTER(handler), zbx_thread_args_t *thread_args); -int zbx_thread_wait(ZBX_THREAD_HANDLE thread); +void zbx_thread_start(ZBX_THREAD_ENTRY_POINTER(handler), zbx_thread_args_t *thread_args, ZBX_THREAD_HANDLE *thread); +int zbx_thread_wait(ZBX_THREAD_HANDLE thread); void zbx_threads_wait(ZBX_THREAD_HANDLE *threads, int threads_num); /* zbx_thread_exit(status) -- declared as define !!! */ long int zbx_get_thread_id(void); -- cgit v1.2.3