Skip to content

OPC-UA adapter uses non-reentrant functions in UNIX signal handler #30

@phako

Description

@phako

singal handlers should not use non-reentrant functions such as operators on cout or complex C++ operations, see http://en.cppreference.com/w/cpp/utility/program/signal and https://linux.die.net/man/2/signal.

It would be better to just set the std::atomic in the handler and do all the complex things (cout, stopping the adapter etc.) after the while loop in the main function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions