Many thanks for your explanations. I'll store this for reference.
Jamie Lokier wrote:
- The child code must not return from the function which calls
vfork; must not call longjmp and similar functions; must not
call malloc and similar functions; must not call printf and
other stdio functions;
after *exec, of course calling those functions are allowed....
- Ironically, some implementations of exec functions which search a
path call malloc, so may be unsafe. So in portable code, only
use execve or execv, and do path searching yourself if
required, without calling malloc.
I do hope this is not the case with uCLinux ! I suppose the shell just
does exec().
-Michael
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev