couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject git commit: Fix badarg error in couch_os_process
Date Sat, 05 Nov 2011 20:59:18 GMT
Updated Branches:
  refs/heads/1.2.x e851067df -> 191b75a13


Fix badarg error in couch_os_process

The value of the KillCmd is an iolist and not a
binary, so the binary_to_list call failed.
Issue introduced by COUCHDB-1186.


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

Branch: refs/heads/1.2.x
Commit: 191b75a13c82859a7f4303e04b81c69a470af208
Parents: e851067
Author: Filipe David Borba Manana <fdmanana@apache.org>
Authored: Sat Nov 5 20:55:15 2011 +0000
Committer: Filipe David Borba Manana <fdmanana@apache.org>
Committed: Sat Nov 5 20:57:50 2011 +0000

----------------------------------------------------------------------
 src/couchdb/couch_os_process.erl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/191b75a1/src/couchdb/couch_os_process.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_os_process.erl b/src/couchdb/couch_os_process.erl
index 1c0a6f9..518a7c2 100644
--- a/src/couchdb/couch_os_process.erl
+++ b/src/couchdb/couch_os_process.erl
@@ -156,7 +156,7 @@ init([Command, Options, PortOptions]) ->
             % this ensure the real os process is killed when this process dies.
             erlang:monitor(process, Pid),
             receive _ -> ok end,
-            os:cmd(?b2l(KillCmd))
+            os:cmd(iolist_to_binary(KillCmd))
         end),
     OsProc =
     lists:foldl(fun(Opt, Proc) ->


Mime
View raw message