We encounter a problem and need your help. In short I have a daemon program AAA that is launched when ARM embedded device is booting.
Once it's started, AAA program needs to call another program BBB when an even xxx occurred ( we use execl("/bin/sh", "sh", "-c", BBB_command, (char*) 0); )
This BBB program works perfectly when we launched AAA manually (login by telnet and type /usr/local/bin/AAA & ). But if AAA is launched during booting time (Daemon service ), BBB is not launched (child -1 returned)
If we use AAA in x86 env, it works fine in all scenarios.
Please sorry for this dummy explanation as I'm not developer. If you don't clearly understand, or need further info, i can give you the code in PMB.