BUG/MINOR: avoid bashism in system() call

Other shell than >=bash-4 and dash does not support '&>' I/O redirection.

Introduce in commit v0.17.0-1871-g18cbd6f

 « While at it, I also fixed the piping of stdout and stderr to be nicer. »
This commit is contained in:
Bertrand Jacquin 2013-11-06 01:24:28 +01:00
parent 18cbd6f59a
commit 19281cfd47
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ main(int argc,
"-ex 'set logging file %s' "
"-ex 'set logging on' "
"-ex 'thread apply all backtrace full' "
"-ex detach &> /dev/null < /dev/zero",
"-ex detach > /dev/null 2>&1 < /dev/zero",
cmd,
pid,
output ?: "e-output.txt");