Tcl Source Code

View Ticket
Login
Ticket UUID: 1217375
Title: race condition in file mkdir
Type: Bug Created on: 2005-06-09 04:35:53
Submitter: diekhans Assigned to: vincentdarley
Subsystem: 37. File System Severity:
Priority: 5 Medium Last modified: 2005-06-09 23:18:34
Status: Closed Closed by: vincentdarley
Resolution: Fixed Closed on: 2005-06-09 16:18:34
Version: obsolete: 8.5a3
Description:
There is a race condition in file mkdir with two process atempting
to create the same multi-level directory  path at the same time will 
cause one of the processes to get an EEXIST error.  This is caused 
by one process creating a directory between the time the other 
process checks if the directory exists and attempts to create it.

While this is uncommon on a single system, it's easy to reproduce
on a large cluster with a shared file system.
User Comments:
diekhans added on 2005-06-09 11:35:54:

File Added - 137726: tclFCmd.c-mkdir.patch

vincentdarley added on 2005-06-09 23:18:34:
Logged In: YES 
user_id=32170

Thanks - will fix in cvs.

Attachments: