David McCullough <[EMAIL PROTECTED]> wrote:
> Jivin Wolf, Josef lays it down ...
> ...
> > The POSIX manpage that comes with my suse-10.1 box says that the
> > client is not allowed to:
> > - modify any data except a variable to store vfork()'s return value.
You can allocate more stack space and use that - obviously, otherwise you'd
not be able to call any functions on some archs - and that can give you more
variables or buffers or whatever, but still you must be careful.
> Yes, there are things you can run, in practice you will find plenty
> of examples in the uCLinux-dist where fd's are closed/opened (NOT fopen
> mind you). things like
>
> pid = vfork()
> if (pid == 0) {
> close(0);
> close(1);
> close(2);
> open("/dev/null", ...)
> ...
> execv(...)
> }
dup() and dup2() are okay also.
David
_______________________________________________
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