file descriptor 5 in bb 1.5.0?

Denis Vlasenko vda.linux at googlemail.com
Sun Apr 29 11:51:37 UTC 2007


On Saturday 28 April 2007 19:41, 01flipstar at web.de wrote:
> Hello,
> 
> IŽm trying to update the firmware of an arm-based NAS (NAS-2000 raidsonic).
> The problem IŽm facing now is that one of the constructor programms is not working
> when I change busybox from v.1.0 to 1.5.
> I used strace to figure out the differences between the two versions:

What is the "constructor program"?

> busybox 1.0
> 
> .....
> read(5, 0xbefffcd4, 16)                 = -1 EAGAIN (Resource temporarily unavailable)
> fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(204, 40), ...}) = 0
> ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B19200 opost isig icanon echo ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3fc4d000
> write(1, "construct_admin.c System adminis"..., 71) = 71
> write(5, "CREATE \"User\" \"createDir\" = \"1\" "..., 117) = 117
> poll([{fd=5, events=POLLIN|POLLERR|POLLHUP|POLLNVAL}], 1, 1000) = 0
> poll([{fd=5, events=POLLIN|POLLERR|POLLHUP|POLLNVAL}], 1, 1000) = 0
> poll([{fd=5, events=POLLIN|POLLERR|POLLHUP|POLLNVAL}], 1, 1000) = 0
> poll([{fd=5, events=POLLIN|POLLERR|POLLHUP|POLLNVAL}], 1, 1000) = 0
> poll([{fd=5, events=POLLIN|POLLERR|POLLHUP|POLLNVAL}], 1, 1000) = 0
> poll([{fd=5, events=POLLIN|POLLERR|POLLHUP|POLLNVAL, revents=POLLIN}], 1, 1000) = 1
> fcntl64(5, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
> read(5, "104 OBJECT ", 16)              = 11
> .....
> 
> busybox-1.5.0
> 
> .....
> read(3, 0xbefffce4, 16)                 = -1 EAGAIN (Resource temporarily unavailable)
> fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(204, 40), ...}) = 0
> ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B19200 opost isig icanon echo ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3fc4d000
> write(1, "construct_admin.c System adminis"..., 71) = 71
> write(3, "CREATE \"User\" \"createDir\" = \"1\" "..., 117) = 117
> poll([{fd=3, events=POLLIN|POLLERR|POLLHUP|POLLNVAL}], 1, 1000) = 0
> poll([{fd=3, events=POLLIN|POLLERR|POLLHUP|POLLNVAL, revents=POLLIN}], 1, 1000) = 1
> fcntl64(3, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
> read(3, "401 FAIL ", 16)                = 9
> .....
> 
> As far as I can see busybox 1.0 is using fd5 so my question is, is there a way to force busybox-1.5 to
> use fd5 as well?

It's not clear to me what command you are stracing.

--
vda



More information about the busybox mailing list