summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_os_process.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2009-10-24 18:53:57 +0000
committerAdam Kocoloski <kocolosk@apache.org>2009-10-24 18:53:57 +0000
commit944dbcd5af0f47363499c55effb85170357b77db (patch)
tree16a634d3ea704d89972530b56fa372931a14483f /src/couchdb/couch_os_process.erl
parent6dab6744c77a1f044017e0b79573185264f7bb09 (diff)
use couch_util:priv_dir() b/c it works in dev mode too
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829432 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_os_process.erl')
-rw-r--r--src/couchdb/couch_os_process.erl8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/couchdb/couch_os_process.erl b/src/couchdb/couch_os_process.erl
index 957e1a95..f42e99a8 100644
--- a/src/couchdb/couch_os_process.erl
+++ b/src/couchdb/couch_os_process.erl
@@ -103,13 +103,7 @@ readjson(OsProc) when is_record(OsProc, os_proc) ->
% gen_server API
init([Command, Options, PortOptions]) ->
- case code:priv_dir(couch) of
- {error, bad_name} ->
- % small hack, in dev mode "app" is couchdb. Fixing requires renaming
- % src/couch to src/couch. Not really worth the hassle.-Damien
- PrivDir = code:priv_dir(couchdb);
- PrivDir -> ok
- end,
+ PrivDir = couch_util:priv_dir(),
Spawnkiller = filename:join(PrivDir, "couchspawnkillable"),
BaseProc = #os_proc{
command=Command,