A. Sinan Unur (
[email protected]) wrote on MMMMCLX September
MCMXCIII in <URL:%%
%% It creates a race condition. While I cannot concoct a demonstration,
%% when a race condition is theoretically possible, you can be sure it will
%% bite you at some point.
Yeah, it creates a race condition.
You know what? I've *never* written a program where I care about it.
I happily write:
-d $dir or mkdir $dir or die;
Sure, there's the possibility some other program creates the directory
between checking for its existance and the attempt to create it. But
if I were to worry about that, I would also need to worry about a program
*deleting* the directory after my program created it.