title: How to associate valgrind with a running process?
body: <p>I have a binary called "ifmFuseHandler" which is invoked by a shell-script something like this: 
      <code>su - $USER -c "cd $DIR_INDEX;valgrind --leak-check=full ifmFuseHandler $IFM_SINGLE_THREAD -o allow_other $IFM_MOUNT"</code></p>
  
  <p>But the problem is, i can see the valgrind logs only once, when the control hits this line of shell, and post that even though the ifmFuseHandler is up and running, valgrind does not provide any profiling info.</p>
  
  <p>So, as you can see below, but no further logging:</p>
  
  <pre><code>insite1@POC-Messaging1:/opt/insiteone/log&gt; ps -ef | grep ifmFuseHandler
  insite1    622     1  0 04:19 ?        00:00:02 valgrind --leak-check=full ifmFuseHandler -o allow_other /opt/insiteone/fuse-mount
  insite1   3225 26014  0 04:32 pts/2    00:00:00 grep ifmFuseHandler
  </code></pre>