Re: Signal blocking



Chad Robinson wrote:
I'm sure there's a GTK solution, but is there any reason you don't just:

    static int ignore_signals = 0;

    cb_func(...)
    {
        if (ignore_signals) return;
        ...
    }

This does not work either.

This lets me think: The offending code is called from inside a signal handler itself. Is it possible that signal emitted from a signal handler are delayed until the signal handler returns?

If so, how do I cancel the emitted signal?


 /Arne



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]