title: Running subprocess.run as root not working
body: <p>I am trying to kill a subprocess via its pid by using subprocess.call() to do it. I obtain the pid by assigning return to a value like this: </p>
  
  <pre><code>return = subprocess.Popen(["sudo", "scrolling-text-example", "-y7"]) 
  x= return.pid
  </code></pre>
  
  <p>When when I am ready to end this subprocess I am using this code:</p>
  
  <pre><code>subprocess.call(["sudo","kill",str(x)])
  </code></pre>
  
  <p>This does not kill the subprocess, but if I open terminal (let's say x is 1234),  and type: <code>sudo kill 1234</code> , it will kill the subprocess. </p>