Do not exit python program, but keep running
<p>I've seen a few of these questions, but haven't found a real answer yet.</p>

<p>I have an application that launches a gstreamer pipe, and then listens to the data it sends back.</p>

<p>In the example application I based mine one, it ends with this piece of code:</p>

<pre><code>gtk.main()
</code></pre>

<p>there is no gtk window, but this piece of code does cause it to keep running. Without it, the program exits.</p>

<p>Now, I have read about constructs using <code>while True:</code>, but they include the <code>sleep</code> command, and if I'm not mistaken that will cause my application to freeze during the time of the sleep so ...</p>

<p>Is there a better way, without using gtk.main()?</p>
