siproc

A primitive SIP client that spawns processes for each call
git clone git://xatko.vsos.ethz.ch/siproc.git
Log | Files | Refs

commit 3e79a540801f2df587407f977a3055c29baef2fa
parent 78b1b0f2aaa15f5d161d330bd8624655920ce623
Author: Dominik Schmidt <dominik@schm1dt.ch>
Date:   Sat, 10 Aug 2019 19:17:44 +0200

Properly handle command line arguments of child process.

We have to include the binary name as first argument

Diffstat:
src/siproc.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/siproc.cpp b/src/siproc.cpp @@ -368,7 +368,7 @@ void MyCall::fork_on(char **args){ setenv("SIPROC_REMOTE_ID", ci.callIdString.c_str(), 1); setenv("SIPROC_REMOTE_URI", ci.remoteUri.c_str(), 1); setenv("SIPROC_REMOTE_CONTACT", ci.remoteContact.c_str(), 1); - if(execv(args[0], &args[1]) < 0){ + if(execv(args[0], args) < 0){ perror("exec"); } exit(1);