summaryrefslogtreecommitdiff
path: root/src/util.erl
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-10-13 17:02:59 +0200
committerLinus Nordberg <linus@nordu.net>2015-11-11 13:32:37 +0100
commite77934418082facf6c4b3566100b108b26e4119d (patch)
treea63407f52b3bf0e0ce5197086fd9ccef3dbd87d3 /src/util.erl
parentbf942e436439cad802a04d4d971f47aa378bc482 (diff)
Move timeouts to separate include file
Diffstat (limited to 'src/util.erl')
-rw-r--r--src/util.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.erl b/src/util.erl
index af78b93..8a8152a 100644
--- a/src/util.erl
+++ b/src/util.erl
@@ -6,6 +6,8 @@
check_error/3, write_tempfile_and_rename/3,
spawn_and_wait/1, parallel_map/3]).
+-include("timeouts.hrl").
+
-spec tempfilename(string()) -> string().
tempfilename(Base) ->
{MegaSecs, Secs, MicroSecs} = now(),
@@ -23,7 +25,7 @@ fsync(Paths, Timeout) ->
end.
fsync(Paths) ->
- fsync(Paths, 5000).
+ fsync(Paths, ?UTIL_FSYNC_DEFAULT_TIMEOUT).
-spec exit_with_error(atom(), atom(), string()) -> no_return().
exit_with_error(Operation, Error, ErrorMessage) ->