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:58:52 GMT
Updated Branches:
  refs/heads/master 8a6e0f0ac -> bea11f802


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/bea11f80
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/bea11f80
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/bea11f80

Branch: refs/heads/master
Commit: bea11f802a999d3502a88f9d731315bd15cfe20c
Parents: 8a6e0f0
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:55:15 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/bea11f80/src/couchdb/couch_os_process.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_os_process.erl b/src/couchdb/couch_os_process.erl
index ae2f8b6..d2d3563 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