summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2012-05-30 19:05:06 +0530
committerAnand Avati <avati@redhat.com>2012-05-30 15:22:25 -0700
commitf2a3291c2fe5a00bca1e4a77a37560ec30cc24bf (patch)
tree7d09f0972d74169da4f1d694ece46ed26cf313a0 /rpc/rpc-lib
parent0fd6f1491050a2ac515ecbe8a1100342a3948305 (diff)
logging: change the 'logfile' value in a locked region
'logfile' is a global variable, and it can change if log-rotate command is issued. currently 'fprintf(logfile)' happens in a locked region where as the 'fclose(logfile)' can happen outside the locked region causing racy behavior. Change-Id: I40871e5c365303b7c602e2c302b085d64f6b945f Signed-off-by: Amar Tumballi <amarts@redhat.com> BUG: 826032 Reviewed-on: http://review.gluster.com/3493 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'rpc/rpc-lib')
0 files changed, 0 insertions, 0 deletions