Hi,
In file_log_access.c , the log funcion file_log_access,:
ci_threadrwlockrdlock(&lf->rwlock); /obtain a read lock/
if (lf->access_log)
fprintf(lf->access_log,"%s\n", logline);
ci_thread_rwlock_unlock(&lf->rwlock); /obtain a read lock/
question is , When a file is written, a write lock should be obtained.but here is rdlock?
Hi, In file_log_access.c , the log funcion file_log_access,: ci_threadrwlockrdlock(&lf->rwlock); /obtain a read lock/ if (lf->access_log) fprintf(lf->access_log,"%s\n", logline); ci_thread_rwlock_unlock(&lf->rwlock); /obtain a read lock/
question is , When a file is written, a write lock should be obtained.but here is rdlock?