[Xorp-cvs] [greearb/xorp.ct] 37ded8: valgrind: Enable running processes under valgrind

noreply at github.com noreply at github.com
Fri Jul 30 16:53:22 PDT 2010

Branch: refs/heads/master
Home:   http://github.com/greearb/xorp.ct

Commit: 37ded813e3bb0a59775441176f3c114b77c7730c
Author: Ben Greear <greearb at candelatech.com>
Date:   2010-07-30 (Fri, 30 Jul 2010)

Changed paths:
  M xorp/libxorp/eventloop.cc
  M xorp/libxorp/run_command.cc
  M xorp/libxorp/timeval.cc
  M xorp/libxorp/timeval.hh

Log Message:
valgrind:  Enable running processes under valgrind

Assumes /usr/bin/valgrind is the right location.
Create a file:  XORP_USE_VALGRIND in the local directory
that you are running xorp.  Start xorp_rtrmgr as normal
(possibly under valgrind as well).  Anything that xorp_rtrmgr
runs will be started under valgrind as well.

Also:  If xorp_do_run is false (shutting down process),
don't let eventloop sleep more than 1 second per loop.
This should fix hangs on shutdown that I (still) see in bgp.

Signed-off-by: Ben Greear <greearb at candelatech.com>

More information about the Xorp-cvs mailing list