This code did not exist in 0.96-3 so maybe you just need to ask
upstream to think about how they want to this on non-Linux systems?

The code have been added by commit

http://cgit.freedesktop.org/PolicyKit/commit/?id=4a9e4f72db4ec00500d9334f7411a086d7c81d0f

It looks like the whole signalfd() is used used
only for "gracefully handle SIGINT".

Iff SIGINT have to blocked all the time, then
brute force solution is to every xxx ms call function

        sigpending(set)
        if (SIGINT is pending in set)
        {       sigwait(SIGINT);
                g_main_loop_quit (loop);
        }

Iff SIGINT do not have to blocked all the time,
then idea will be to create a pipe and install signal
handler for SIGINT which will write into this pipe
availability of data can be tested by poll/select/...

signalfd is really linux only ...

Petr




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to