robert...@aol.com wrote: > I am trying to track down a memory leak in my fcgi process. I have > used a bit valgrind before but the scenario was a bit less complex. In > the current scenario, the fcgi process is started by a lighttpd script > using the following command. > > daemon $FCGI_DAEMON -f $webfcgi -a $FCGI_SOCKET_IP -p $FCGI_SOCKET_PORT > -P $FCGI_PIDFILE > > I am more interested in tracking the fcgi process than lighttpd. Is > there any way to modify this command to invoke valgrind on my > '$webfcgi' process when lighttpd starts?
Hi Assuming that you have the right privs and that it is not a 'mission critical production server', then a quick and dirty way to do this would be to do something like mv fcgi fcgi.orig then create a wrapper script fcgi that does something like valgrind [valgrind options] cfgi.orig [cfgi options, or probably just "$@"] A+ Paul ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users