Logo Search packages:      
Sourcecode: pulseaudio version File versions  Download package

void pa_signal_free ( pa_signal_event e  ) 

Free a UNIX signal event source object

Definition at line 204 of file mainloop-signal.c.

                                        {
    pa_assert(e);

    if (e->next)
        e->next->previous = e->previous;
    if (e->previous)
        e->previous->next = e->next;
    else
        signals = e->next;

#ifdef HAVE_SIGACTION
    pa_assert_se(sigaction(e->sig, &e->saved_sigaction, NULL) == 0);
#else
    pa_assert_se(signal(e->sig, e->saved_handler) == signal_handler);
#endif

    if (e->destroy_callback)
        e->destroy_callback(api, e, e->userdata);

    pa_xfree(e);
}


Generated by  Doxygen 1.6.0   Back to index