<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thanks for those links Kris,<br>
    <br>
    For years, I've been teaching 'Event Based Programming', giving the
    example of <br>
    <blockquote><small>You set your alarm<br>
        You go to sleep<br>
        You get up when the alarm rings<br>
      </small></blockquote>
    <br>
    I have been criticising students who wrote code which went<br>
    <blockquote><small>Set the alarm</small><br>
      <small>Keep one eye on the alarm, waiting for it to go off</small>.<br>
    </blockquote>
    <br>
    Now, it seems, that thanks to a feature in the design of Unix, I
    have to do just that.<br>
    <br>
    Ah well.  At least I know what I am trying to prevent.<br>
    <br>
    Ian<br>
    <br>
    <div class="moz-cite-prefix">On 02/02/2013 16:58, Krzysztof Konopko
      wrote:<br>
    </div>
    <blockquote cite="mid:510D45BB.6020202@youview.com" type="cite">
      <pre wrap="">
I think that gst-launch doesn't take the best approach to signal
handling.  Use signalfd instead [1]. An example might be useful [2].

You get a file descriptor which you can watch it with g_io_add_watch()
[3]. See the example [4]

[1] <a class="moz-txt-link-freetext" href="http://linux.die.net/man/2/signalfd">http://linux.die.net/man/2/signalfd</a>
[2] <a class="moz-txt-link-freetext" href="http://kriscience.blogspot.co.uk/2013/02/handling-posix-signals.html">http://kriscience.blogspot.co.uk/2013/02/handling-posix-signals.html</a>
[3] <a class="moz-txt-link-freetext" href="http://developer.gnome.org/glib/stable/glib-IO-Channels.html">http://developer.gnome.org/glib/stable/glib-IO-Channels.html</a>
[4]
<a class="moz-txt-link-freetext" href="http://kriscience.blogspot.co.uk/2012/12/reading-standard-input-from-gmainloop.html">http://kriscience.blogspot.co.uk/2012/12/reading-standard-input-from-gmainloop.html</a>
_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>

</pre>
    </blockquote>
    <br>
    <div class="moz-signature"><br>
    </div>
  </body>
</html>