[Interest] proper (silent) exit in response to SIGHUP?

Thiago Macieira thiago.macieira at intel.com
Mon Oct 8 21:47:14 CEST 2018

On Monday, 8 October 2018 10:46:31 PDT René J.V. Bertin wrote:
> Thiago Macieira wrote:
> >> What is the purpose of the pipe/eventfd detour? Can't I just call a
> >> function or signal a slot directly?
> > 
> > You can call _exit. You can't call much else. You can only call the
> > functions
> OK, got it.
> I take it that the QSocketNotifier lives on the main thread and connects to
> a slot that lives there too, somehow preventing the signal handler from
> returning which could lead to the application exitting prematurely?

The slot can live in any thread, but yes in general you'd place it in the main 

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Interest mailing list