C++ Logo

std-proposals

Advanced search

Re: Signals & Slots

From: Andrey Semashev <andrey.semashev_at_[hidden]>
Date: Mon, 26 Jul 2021 14:15:30 +0300
On 7/26/21 1:36 PM, Antoine Viallon via Std-Proposals wrote:
> On CLI applications, they are almost mandatory to use!
> If you do not catch them, the OS can kill your process "brutally" before you can clean things up…

Not just in CLI applications. There is no alternative if you want
graceful termination or crash handling. Yes, Ctrl+C is still a thing for
GUI apps. I don't see POSIX signals dying any time soon.

> -------- Courriel d’origine --------
> De : Thiago Macieira via Std-Proposals <std-proposals_at_[hidden]>
> Envoyé : 23 juillet 2021 22:29:09 GMT+02:00
> À : std-proposals_at_[hidden], Phil Bouchard <boost_at_[hidden]>
> Cc : Thiago Macieira <thiago_at_[hidden]>
> Objet : Re: [std-proposals] Signals & Slots
>
> On Friday, 23 July 2021 13:22:14 PDT Phil Bouchard wrote:
>> You could mimic and abstract to a certain point the POSIX signals as well
>> (which are pretty messy in a multithreaded environment when you apply some
>> masks in some specific thread).
>
> Let POSIX / Unix signals die a silent death. Don't use it for any new
> application or any new use-case.
>

Received on 2021-07-26 06:15:36