Bug 7868 - Busybox doesnt return the exit status for any command
Summary: Busybox doesnt return the exit status for any command
Status: RESOLVED WORKSFORME
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: Other Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-10 02:13 UTC by ananth
Modified: 2016-01-03 22:24 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Attached the .config file used to build busybox from source (28.31 KB, application/xml)
2015-02-10 02:13 UTC, ananth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ananth 2015-02-10 02:13:28 UTC
Created attachment 5852 [details]
Attached the .config file used to build busybox from source

When i execute commands like 
int ret=system("ls")  where ls is actually busybox ls

the return value in ret is always -1 . 


I read some blogs regarding this problem and it seems that its due to some configuration problem. I have attached the busybox config being used by me while building busybox version 1.23.1
Comment 1 ananth 2015-02-10 03:22:45 UTC
The busy box was built for the  Freescale IMX6 processor with ARM core
Comment 2 Denys Vlasenko 2015-02-10 15:55:04 UTC
Please post log file of "strace -f -oLOG <program> <args>" where <program> tries to call busybox via system().