| Ticket UUID: | 1366227 | ||
| Title: | sharing violation in NativeStat (tclWinFile.c) | ||
| Type: | Bug | Created on: | 2005-11-25 11:35:53 |
| Submitter: | traum | Assigned to: | vincentdarley |
| Subsystem: | 37. File System | Severity: | |
| Priority: | 5 Medium | Last modified: | 2006-01-12 23:19:36 |
| Status: | Closed | Closed by: | vincentdarley |
| Resolution: | Fixed | Closed on: | 2006-01-12 16:19:36 |
| Version: | obsolete: 8.5a4 | ||
| Description: | ||||
I got "permission denied" error while starting multiple tcl-Progs at the same time. Mostly files like tclIndex etc. The problem came from calling createFile in NativeStat with ShareMode == 0, which locks the file for a very short time. After changing this to ShareMode = FILE_SHARE_READ | FILE_SHARE_WRITE all problems disapear. | ||||
| User Comments: | ||||
traum added on 2006-01-12 19:42:23:
Logged In: YES
user_id=770325
Here is an example to reproduce the problem
contents of test.tcl:
while {1} {
file stat test.tcl info
}
Now startting multiple times
"tclsh test.tcl"
leads to "permission denied"
vincentdarley added on 2006-01-12 23:19:36:
Logged In: YES user_id=32170 Thanks, fixed in cvs. | ||||
