Alle 23:20, venerdì 18 aprile 2003, Graham Murray ha scritto:
Praise <praisetazio@tiscalinet.it> writes:
And how could I access them? If I exec a new program it never knows about the former descriptors, even if they remain opened...
In some instances it does. How do think the shell sets STDIN and STDOUT (think pipes and redirection as well as controlling terminal)for programs it launches? Or the consequences (for the subprocess) of calling popen(3).
Well, I had not clear that:) I supposed that before, but I did not know perfectly. From the manual page: "The exec family of functions replaces the current process image with a new process image. " I thought descriptors (at least, not the standard descriptors) were part of a process image. Praise