chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] #1146: create-temporary-file and create-temporary-dir


From: Chicken Trac
Subject: [Chicken-janitors] #1146: create-temporary-file and create-temporary-directory are subject to race conditions
Date: Tue, 05 Aug 2014 14:46:58 -0000

#1146: create-temporary-file and create-temporary-directory are subject to race
conditions
---------------------------------------------------------------+------------
 Reporter:  mario                                              |       Owner:   
      
     Type:  defect                                             |      Status:  
new    
 Priority:  major                                              |   Milestone:  
someday
Component:  core libraries                                     |     Version:  
4.10.x 
 Keywords:  create-temporary-file, create-temporary-directory  |  
---------------------------------------------------------------+------------
 Both use the non-atomic strategy of checking if a file system object exist
 then act, which may lead to race conditions.

 {{{create-temporary-directory}}} is specially more fragile because it uses
 {{{directory-exists?}}} to check if a file system object exists.  So, for
 example, if a regular file with the same name as the attempted one exists,
 create-temporary-directory will fail.

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/1146>
CHICKEN Scheme <http://www.call-with-current-continuation.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]