You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2011/11/05 21:58:52 UTC

git commit: Fix badarg error in couch_os_process

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 <fd...@apache.org>
Authored: Sat Nov 5 20:55:15 2011 +0000
Committer: Filipe David Borba Manana <fd...@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) ->