> Isn't that what dup2 is for?

That creates a copy of an existing file descriptor, but doesn't modify
an existing one. Copying one which has already been closed isn't likely
to do anything useful.

Volker

-- 
Volker Kuhlmann                 is possibly list0570 with the domain in header
http://volker.dnsalias.net/             Please do not CC list postings to me.

Reply via email to