Repository: couchdb-couch
Updated Branches:
  refs/heads/master b49d06916 -> b1127cdf5


Use ioq to separately prioritise prompt requests

COUCHDB-3001


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/0cd210a1
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/0cd210a1
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/0cd210a1

Branch: refs/heads/master
Commit: 0cd210a15b0d702c41cfcb7fd17f117e3639a0bc
Parents: b49d069
Author: ILYA Khlopotov <iil...@ca.ibm.com>
Authored: Thu Apr 21 11:52:07 2016 -0700
Committer: ILYA Khlopotov <iil...@ca.ibm.com>
Committed: Thu Apr 21 11:52:07 2016 -0700

----------------------------------------------------------------------
 src/couch_os_process.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/0cd210a1/src/couch_os_process.erl
----------------------------------------------------------------------
diff --git a/src/couch_os_process.erl b/src/couch_os_process.erl
index 5b9a17f..4f15555 100644
--- a/src/couch_os_process.erl
+++ b/src/couch_os_process.erl
@@ -51,7 +51,7 @@ send(Pid, Data) ->
     gen_server:cast(Pid, {send, Data}).
 
 prompt(Pid, Data) ->
-    case gen_server:call(Pid, {prompt, Data}, infinity) of
+    case ioq:call(Pid, {prompt, Data}, erlang:get(io_priority)) of
         {ok, Result} ->
             Result;
         Error ->

Reply via email to