Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Mednis <Andris.Mednis@zabbix.com>2012-11-22 17:25:09 +0400
committerAndris Mednis <Andris.Mednis@zabbix.com>2012-11-22 17:25:09 +0400
commit88adaa6d8ab165502e66d6c49f41e3e791683a71 (patch)
tree848d1f36cc57bfcf4251761c0d97d6c39d8f690f /include/threads.h
parentb5e2ea6846a2a822dd7cff04960500f79d0b86d6 (diff)
...G...... [ZBX-5732] fixed sending data from a file in Zabbix sender
Diffstat (limited to 'include/threads.h')
-rw-r--r--include/threads.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/threads.h b/include/threads.h
index cdf848a5eae..0d380322169 100644
--- a/include/threads.h
+++ b/include/threads.h
@@ -59,8 +59,9 @@
#define ZBX_THREAD_ENTRY(entry_name, arg_name) \
unsigned entry_name(void *arg_name)
+ /* Calling _exit() to terminate child process immediately is important. See ZBX-5732 for details. */
#define zbx_thread_exit(status) \
- exit((int)(status)); \
+ _exit((int)(status)); \
return ((unsigned)(status))
#define zbx_sleep(sec) sleep((sec))