[Interest] proper (silent) exit in response to SIGHUP?
giuseppe.dangelo at kdab.com
Fri Oct 12 13:10:18 CEST 2018
Il 12/10/2018 10:58, René J. V. Bertin ha scritto:
> Did some backtracing in a debugger; I get an almost identical backtrace from the
> event loop (and not the signal handler) when I call my slot
> - through a QSocketNotifier (after writing to a pipe)
> - through a QueuedConnection connection invoked from an emit in the signal
> The latter solution also makes it more straightforward to pass the signal number
> to the actual handler.
> Is this safe? If it is, wouldn't it be a nice little addition to
It's not safe. Emitting a signal with a queued invocation will allocate
memory. So don't do it from a signal handler.
My 2 c,
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4007 bytes
Desc: Firma crittografica S/MIME
More information about the Interest