Il 15/06/20 18:12, Thiago Macieira ha scritto:
No, you can't, because you need to block the signal using pthread_sigmask in
all threads, otherwise the kernel may prefer delivering the signal instead of
using the signalfd. Qt has a few background threads (like the QHostInfo thread
pool) that you d
On segunda-feira, 15 de junho de 2020 04:06:28 PDT Giuseppe D'Angelo via
Interest wrote:
> On Linux you can also use signalfd(2) to achieve the same without the
> burden of a custom signal handler.
No, you can't, because you need to block the signal using pthread_sigmask in
all threads, otherwis
On segunda-feira, 15 de junho de 2020 03:58:12 PDT Bernhard Lindner wrote:
> I wrote a logging application containing a signal handler that is registered
> using std::signal(). The handler receives signals like SIGFPE, SIGSEGV,
> etc.
>
> Now I would like to connect that handler to some Qt based l
Il 15/06/20 12:58, Bernhard Lindner ha scritto:
Are there any functions in Qt that are considered async-handler-safe?
No, as any of them may allocate memory.
See https://doc.qt.io/qt-5/unix-signals.html for the textbook solution
(self pipe trick).
On Linux you can also use signalfd(2) to a
Hi!
I wrote a logging application containing a signal handler that is registered
using
std::signal(). The handler receives signals like SIGFPE, SIGSEGV, etc.
Now I would like to connect that handler to some Qt based logging code.
Unfortunately I could not find a portable solution to do that.
Ar