[Pkg-utopia-maintainers] Bug#602476: Bug#602476: policykit-1: FTBFS on kfreebsd-*: sys/signalfd.h: No such file or directory

Petr Salinger Petr.Salinger at seznam.cz
Thu Nov 18 09:30:02 UTC 2010


> 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






More information about the Pkg-utopia-maintainers mailing list