ubus socket always in connecting status

When we try to transplant ubus to uclinux, ubusd can't run but "ubus list" will hang up.

1. netstat -anp

unix  2      [ ]         STREAM     CONNECTING         0 -                   /var/run/ubus.sock

2. client is blocked at read() system call

3. no any logs

solution:

perror() after connect() shows that there is some un-implemented function call.

Actually, connect() doesn't produce this error, it is produced by other call earlier.(not reset error before invoke connect() function).

Continue to backtrace this error, found that libubox.so call some methods of event poll (epoll), but our kernel doesn't enable this option.

 

Appendix:

Before resolve this question, if we chmod +s /sbin/ubusd and then test it again, we found that there would a more record:

unix  3      [ ]         STREAM     CONNECTED       2651 1938/ubus  

But client can't get any results still.

still understand how and why so. just for mark.

转载于:https://www.cnblogs.com/clblacksmith/p/10239360.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值