[PATCH] -o fails to create directory that already exists (race condition)
Found in oggenc from vorbis-tools 1.2.0 / Ubuntu 9.04 Alpha 4.
I have a script that runs several oggenc instances in parallel. I use the -o option and let oggenc create directories as needed. This works most of the time, but sometimes I get this kind of error:
Couldn't create directory "/media/disk/MUSIC/Haydn, Joseph - String Quartets": File exists
As I understand it, this happens when two parallel oggenc instances both decide to create the same directory; one creates the directory and the other one fails because the directory is already created.
I suggest that oggenc should relax its error checking and swallow this particular kind of "error".
-- Per Ångström