Jesse Guo
Jesse Guo
使用了,就在elog_port.c中增加了一个写入到文件的函数: ``` static char _log_dir[50] = "/media/tfcard/log/"; static char _file_name[50] = {0}; void log_setdir(const char * dir) { bzero(_log_dir, sizeof(_log_dir)); strcpy(_log_dir, dir); } void log_setdirname(const char * name) { bzero(_file_name,...
今天又遇到了 ``` (gdb) bt #0 0x76e55ba4 in __libc_do_syscall () from /lib/libpthread.so.0 #1 0x76e5368c in __lll_lock_wait () from /lib/libpthread.so.0 #2 0x76e4f5ba in pthread_mutex_lock () from /lib/libpthread.so.0 #3 0x00015c12 in elog_port_output_lock ()...
还没找到复现的方式,等我空下来复现一下
可能不是EasyLogger的问题,我发现所有线程都死在了`__libc_do_syscall`这边,我把EasyLogger去掉了还是如此,包括我内部调用了`exit(0)`函数,也是没有让进程退出。很让人头疼,不知道大家有没有遇到过这种问题。 ``` Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". __libc_do_syscall () at ../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:43 43 ../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S: No such file or directory. (gdb) bt #0 __libc_do_syscall () at ../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:43...
It's still a problem. :)
不做了,你可以参考参考,推广也是头疼的问题
@pqarmitage Thank you for your reply. This is exactly what I need, and `use_vmac_addr ` could be a good idea.
Good idea, but it should ignore the `eth0` interface use VMACs if configured like: ``` vrrp_instance XXXX { interface eth0 use_vmac virtual_ipaddress { a.b.c.d dev eth3 use_vmac e.f.g.h dev eth5...
I thought it could auto break by word width, but it not.
@u0x01 By implement `splieRune` function and replace `splitOnSpace` in `wrap.go`, you can do it yourself. ``` go package gg import ( "strings" "unicode" ) type measureStringer interface { MeasureString(s string)...