Tcl Source Code

View Ticket
Login
Ticket UUID: 1217375
Title: race condition in file mkdir
Type: Bug Version: obsolete: 8.5a3
Submitter: diekhans Created on: 2005-06-09 04:35:53
Subsystem: 37. File System Assigned To: vincentdarley
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-06-09 23:18:34
Resolution: Fixed Closed By: vincentdarley
    Closed on: 2005-06-09 16:18:34
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: vincentdarley added on 2005-06-09 23:18:34:
Logged In: YES 
user_id=32170

Thanks - will fix in cvs.

diekhans added on 2005-06-09 11:35:54:

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

Attachments: