Phương Quyên
New member
What are file descriptors and how are they assigned?
Answer
When a new file is opened, a descriptor is
assigned using the first available entry in the process’s file descriptor table
. … If your program opens a data file for writing and gets stderr ‘s file descriptor, an error message written to stderr will destroy your data file.
Answer
When a new file is opened, a descriptor is
assigned using the first available entry in the process’s file descriptor table
. … If your program opens a data file for writing and gets stderr ‘s file descriptor, an error message written to stderr will destroy your data file.