ibm-s390-linux / smc-tools

Tools for use with AF_SMC sockets
Eclipse Public License 1.0
19 stars 14 forks source link

smc_run: Fix for single quotes in parameters #4

Closed tonyluj closed 2 years ago

tonyluj commented 2 years ago

smc_run does not handle single quotes correctly, strings in single quotes are treated as two arguments, such as:

smc_run wrk http://127.0.0.1/ -t64 -c 1000 -d 10 -H 'Connection: Close'

This patch fixes it by passing parameters to exec directly and keep them as them are. Also remove the unused command_line variable.

Signed-off-by: Tony Lu tonylu@linux.alibaba.com