[Bug 693481] New: Using signalfd() to handle keyboard interruption in gst-launch

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Feb 9 08:24:00 PST 2013


https://bugzilla.gnome.org/show_bug.cgi?id=693481
  GStreamer | gstreamer (core) | git

           Summary: Using signalfd() to handle keyboard interruption in
                    gst-launch
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: krzysztof.konopko at youview.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Created an attachment (id=235588)
 View: https://bugzilla.gnome.org/attachment.cgi?id=235588
 Review: https://bugzilla.gnome.org/review?bug=693481&attachment=235588

Proposed patch

The current implementation uses a traditional signal handler and a 250ms    
timeout callback in the event loop.  Using signalfd() and polling a file   
descriptor in the GMainLoop is a more elegant solutions.  The signal handler
with this approach can send a message to the bus directly rather than set a
flag.

The old approach is kept for backwards compatibility as signalfd() might not be
fully supported on all systems.

Questions:
* Is preserving old method required?

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list