koala-libc
所属分类:C/C++工具库
开发工具:C
文件大小:0KB
下载次数:0
上传日期:2018-12-20 06:37:15
上 传 者:
sh-1993
说明: no intro
(libc interceptor)
文件列表:
LICENSE (11357, 2018-12-19)
allocated_string.h (133, 2018-12-19)
build.sh (156, 2018-12-19)
countlog.h (1997, 2018-12-19)
hook.c (17734, 2018-12-19)
span.h (103, 2018-12-19)
# koala-libc
If koala-recorder.so is loaded on php-fpm master process, fork() will break golang.
Use koala-libc.so to load koala-recorder.so in the child process to circumvent this problem.
```
# compile https://github.com/v2pro/koala/tree/master/gateway/gw4libc to ~/koala-recorder.so
# compile https://github.com/v2pro/koala-libc to ~/koala-libc.so
KOALA_SO=~/koala-recorder.so LD_PRELOAD="~/koala-libc.so /usr/lib/x86_64-linux-gnu/libcurl.so.4" /usr/sbin/php-fpm7.0 -F
# ~/koala-libc.so will be loaded in master process
# ~/koala-recorder.so will be loaded in child process, at the first call to accept()
```
近期下载者:
相关文件:
收藏者: