diff options
author | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2018-10-30 14:54:36 +0300 |
---|---|---|
committer | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2018-10-30 14:54:36 +0300 |
commit | 54ecceaf1eaf586ecd0fcada56ccd2aab580e101 (patch) | |
tree | 58cf055f3f1b5bf297baf0159f2910d387a893b3 /include | |
parent | eeeb4c87566602344a51c89d514affeccfc3a60c (diff) |
...G...PS. [ZBX-15027] fixed restart failures due to orphaned or zombie processes remaining when zabbix daemon is terminated during startup
Diffstat (limited to 'include')
-rw-r--r-- | include/threads.h | 6 |
1 files changed, 3 insertions, 3 deletions
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); |