Optware / Optware-ng

279 stars 52 forks source link

Nginx does not work on ARMv5 EABI legacy: close(0) = -1 EBADF (Bad file descriptor) #324

Open stalchuk opened 5 years ago

stalchuk commented 5 years ago
nginx -t
nginx: the configuration file /opt/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /opt/etc/nginx/nginx.conf test is successful

Steps to reproduce:

  1. Open default page http://<DEVICE_IP>:8082
  2. Check logs

AR: Infinite loop of:

write(5, "2019/02/07 18:14:52 [alert] 3129"..., 84) = 84
epoll_wait(0x9, 0x102948, 0x200, 0xffffffff) = 1
gettimeofday({1549552492, 126676}, NULL) = 0
close(0) = -1 EBADF (Bad file descriptor)
stalchuk commented 4 years ago

sed -i -e 's@#define NGX_HAVE_ACCEPT4 1@#define NGX_HAVE_ACCEPT4 0@' $(@D)/objs/ngx_auto_config.h

seems to do the trick )