Alle 21:13, venerdì 18 aprile 2003, Jerry Feldman ha scritto:
On Fri, 18 Apr 2003 20:01:05 +0200
Praise <praisetazio@tiscalinet.it> wrote:
As far as I know the process described in Stevens book is the standard way of transferring socket descriptors in cases where you have unrelated processes. However with if you had the old server fork() the new one, then the new one would inherit all the descriptors from the old server :)
Right, but I should exec* anyway, and I think exec clear all descriptors, or am I wrong?
File descriptors are inherited over exec. One of the things init does is to close all file descriptors.
And how could I access them? If I exec a new program it never knows about the former descriptors, even if they remain opened... Praise