Skip to content

Commit

Permalink
Use correct temp directory on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
JPWatson committed Jul 30, 2017
1 parent 97ff49e commit 13043f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Adaptive.Agrona/IoUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ public static void CheckFileExists(string path)
/// <returns> tmp directory for the runtime </returns>
public static string TmpDirName()
{
if (Environment.OSVersion.Platform == PlatformID.Unix)
{
return @"/dev/shm";
}
return Path.GetTempPath();
}

Expand Down

0 comments on commit 13043f2

Please sign in to comment.