Hi Wolfgang,
Hi Jerry,
On Fri, Dec 07, 2007 at 06:33:36PM -0800, Jerry (Peng) Yang wrote:
You can simply type:
Ps.
Then you can get the process id. Type kill n.
[...]
well, that would be the fall-back solution if anything else fails.
If I understand correctly, you mean starting the application in the
background from rc and then after rc terminating have init start
the shell, right?
I would have preferred a way that lets the application run with the
same environment as in the shell (notably, stdin and stdout, because
it does produce log messages and is able to take (debug-)commands from
stdin.
For logging issues, does this help (putting it in main())?
int devnullfd = -1;
devnullfd = open("/dev/ttyS0", O_WRONLY);
if ( devnullfd && dup2(devnullfd, STDOUT_FILENO) == -1) {
printf("Cannot dup\n");
}
Bou
In this device, it is the only application, and so probably these are
rather unordinary questions. ;-)
Thank you,
Wolfgang
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev