Otherwise we will probably try to move the new-defunct open-file
somewhere when we try to make the descriptor refer to the intended
open-file.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
fdmap[inway_intended][0] = inway_moved
os.dup2(actual, intended)
os.close(actual)
fdmap[inway_intended][0] = inway_moved
os.dup2(actual, intended)
os.close(actual)
+ del actual2intended[actual]
def implement_exec(argl):
if donor is not None: donor.detach()
def implement_exec(argl):
if donor is not None: donor.detach()