Commit d28a49f8 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(spawn_lyskomd): Use valgrind.wrap.

parent 19a0cda9
...@@ -319,11 +319,11 @@ proc spawn_lyskomd {arg} { ...@@ -319,11 +319,11 @@ proc spawn_lyskomd {arg} {
set cmd "spawn" set cmd "spawn"
if {$valgrind != ""} { if {$valgrind != ""} {
set cmd "$cmd sh -c \"$valgrind" set cmd "$cmd ./valgrind.wrap"
# set cmd "$cmd -v" # set cmd "$cmd -v"
set cmd "$cmd --num-callers=40" set cmd "$cmd --num-callers=40"
set cmd "$cmd --leak-check=yes" set cmd "$cmd --leak-check=yes"
set cmd "$cmd --logfile-fd=25 25>valgrind.log" set cmd "$cmd --logfile-fd=25"
} }
set cmd "$cmd ../lyskomd" set cmd "$cmd ../lyskomd"
if { $arg == "" } { if { $arg == "" } {
...@@ -331,9 +331,6 @@ proc spawn_lyskomd {arg} { ...@@ -331,9 +331,6 @@ proc spawn_lyskomd {arg} {
} else { } else {
set cmd "$cmd $arg" set cmd "$cmd $arg"
} }
if {$valgrind != ""} {
set cmd "$cmd\""
}
set pid [eval $cmd] set pid [eval $cmd]
return $pid return $pid
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment