18 Apr
2003
18 Apr
'03
21:37
Praise <praisetazio@tiscalinet.it> writes:
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 usually use the info pages rather than man for libc functions, and the info page for the exec family includes File descriptors open in the existing process image remain open in the new process image, unless they have the `FD_CLOEXEC' (close-on-exec) flag set. The files that remain open inherit all attributes of the open file description from the existing process image, including file locks. File descriptors are discussed in *Note Low-Level I/O::.