cms-dev / isolate

Sandbox for securly executing untrusted programs - DEPRECATED, use: https://github.com/ioi/isolate
47 stars 14 forks source link

fix race condition in make_dir #20

Closed austrin closed 9 years ago

austrin commented 9 years ago

If several instances of isolate are started simultaneously, there's a slight race condition when making directories (e.g. /tmp/box, if it does not already exist).

When mkdir fails we check if the path exists and is a directory, and in that case we don't emit an error.

stefano-maggiolo commented 9 years ago

Hello austrin,

could you please send this patch to ioi/isolate? That is the main repo now (we should make that clearer...)

austrin commented 9 years ago

@stefano-maggiolo will do, thanks.