[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] SV: Redirecting stdio using Fforce/Fdup



Hello!

Yes, but there are no programming examples. Also, there are contradicting information on whether the redirected files are closed when the child exits or not.

It's simple, if a process terminate the OS release all attached resources.

As long the process is running it hold the attached resources and the OS don't release any resource (except on special request by the process, calling Fclose/Mfree/... for example).

In case for a pipe, if one side is closed because the process terminated or closed the pipe the other side is still, alive. The pipe is then called widowed. Any write request on such a widowed pipe result in sending a SIGPIPE (I don't know how good MagiC follow these rules).

If you have a Linux just take a look into man 2 pipe.


Regards,
Frank

--
ATARI FALCON 060 // MILAN 060
-----------------------------------------
e-Mail: fnaumann@freemint.de