title: Can't kill airodump process in Python
body: <p>This is killing me. I've been at this all day and am stuck.</p>
  
  <p>My goal is to run airodump-ng for 10 seconds or so, then kill the process so that the csv file that's generated stops getting constantly updated.</p>
  
  <p>I have tried many implementations with no luck for a variety of reasons. Here's the most basic attempt:</p>
  
  <pre><code>command  = "airodump-ng -w airodump mon0"
  airodump = subprocess.Popen([command],stdout=subprocess.PIPE,shell=True)
  time.sleep(10)
  airodump.terminate()
  airodump.kill()
  airodump.wait()
  #trying to run a command like "kill &lt;pid&gt;" does not work either. 
  </code></pre>
  
  <p>If I don't sleep there, the process is interestingly never created. Since I do, the process appears on the screen and never ends. From what I've gathered searching around, I may be dealing with a full pipe buffer. I'm not sure what the implication of that is? Does this mean this one process has just taken over everything? Are there any other problems with this? What is it about airodump that won't let me just delete its Popen object and/or kill the process like usual? (in case you're unfamiliar with airodump, it is very similar behaviorally to 'top')</p>