W
Wang WolfLouis
hi all,
I have a question about file descriptor. consider this
situation, one process wirte a log file using vfprintf function,
sometimes I deleted this log file on the disk. The process seams hold
the same log file file descriptor as before, notheing error message
print.
As I know process treat the log file as COPY-ON-WRITE
technique, however, if the file descriptor does not exist,
vfprintf function should print some error message. So, should access
file every time if want to write contents ?
I have a question about file descriptor. consider this
situation, one process wirte a log file using vfprintf function,
sometimes I deleted this log file on the disk. The process seams hold
the same log file file descriptor as before, notheing error message
print.
As I know process treat the log file as COPY-ON-WRITE
technique, however, if the file descriptor does not exist,
vfprintf function should print some error message. So, should access
file every time if want to write contents ?