Re: [systemd-devel] Exception safety od sd-bus

2021-07-27 Thread Lennart Poettering
On Do, 22.07.21 14:04, Stanislav Angelovič (angelovi...@gmail.com) wrote: > Hi guys! > > Assuming sd-bus is used in a C++ application, is sd-bus safe against > exceptions flying from e.g. a sd-bus vtable callback handler (provided by > the C++ application) and catching them in the caller of sd_bus

[systemd-devel] Antw: [EXT] Re: [systemd‑devel] Exception safety od sd‑bus

2021-07-26 Thread Ulrich Windl
>>> Cristian Rodríguez schrieb am 26.07.2021 um 21:45 in Nachricht : > On Thu, Jul 22, 2021 at 9:16 AM Norbert Lange wrote: >> > >> It should be "supported" in the way that exceptions will *not* >> propagate in C libraries, and your program will call std::terminate >> should one callback throw a

Re: [systemd-devel] Exception safety od sd-bus

2021-07-26 Thread Cristian Rodríguez
On Thu, Jul 22, 2021 at 9:16 AM Norbert Lange wrote: > > It should be "supported" in the way that exceptions will *not* > propagate in C libraries, and your program will call std::terminate > should one callback throw an exception. > Mark your callbacks with 'noexcept', statical analysis might be

Re: [systemd-devel] Exception safety od sd-bus

2021-07-22 Thread Norbert Lange
Am Do., 22. Juli 2021 um 14:04 Uhr schrieb Stanislav Angelovič : > > Hi guys! > > Assuming sd-bus is used in a C++ application, is sd-bus safe against > exceptions flying from e.g. a sd-bus vtable callback handler (provided by the > C++ application) and catching them in the caller of sd_bus_proce

Re: [systemd-devel] Exception safety od sd-bus

2021-07-22 Thread Barry
> On 22 Jul 2021, at 13:04, Stanislav Angelovič wrote: > >  > Hi guys! > > Assuming sd-bus is used in a C++ application, is sd-bus safe against > exceptions flying from e.g. a sd-bus vtable callback handler (provided by the > C++ application) and catching them in the caller of sd_bus_proces

[systemd-devel] Exception safety od sd-bus

2021-07-22 Thread Stanislav Angelovič
Hi guys! Assuming sd-bus is used in a C++ application, is sd-bus safe against exceptions flying from e.g. a sd-bus vtable callback handler (provided by the C++ application) and catching them in the caller of sd_bus_process() (which is the same C++ app)? Or this is not supported (so leaks or whate