Skip to content

service: fix signal cleaning when getting SIGTERM or SIGINT

The main function cleans up the signals handling SIGTERM and SIGINT. But when the service gets a SIGINT or SIGTERM it quits the mainloop and also remove the source as the signal handling it is not needed anymore.

Therefore, we should clean them up only if they were not removed already.

https://bugzilla.redhat.com/show_bug.cgi?id=2214996

Merge request reports