[Bug 5540] Parse error in ash when redirecting value to sysfs

bugzilla at busybox.net bugzilla at busybox.net
Wed Sep 19 10:00:51 UTC 2012


https://bugs.busybox.net/show_bug.cgi?id=5540

--- Comment #4 from Henri Bragge <henri.bragge at gmail.com> 2012-09-19 10:00:50 UTC ---
Created attachment 4544
  --> https://bugs.busybox.net/attachment.cgi?id=4544
echo 128 > ...

In LOG-error, there is something interesting in line 48:
fcntl64(128, F_DUPFD, 10)               = -1 EBADF (Bad file descriptor)
dup2(3, 128)                            = 128
close(3)                                = 0
wait4(-1, 0x7e8fa6dc, WNOHANG, NULL)    = -1 ECHILD (No child processes)
write(1, "\n", 1)                       = 1
close(128)                              = 0

In LOG-ok, this looks like:
fcntl64(1, F_DUPFD, 10)                 = 10
dup2(3, 1)                              = 1
close(3)                                = 0
wait4(-1, 0x7ecc66dc, WNOHANG, NULL)    = -1 ECHILD (No child processes)
write(1, "128\n", 4)                    = 4
dup2(10, 1)                             = 1
close(10)                               = 0

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list