Skip to content

The daemon dies on failing requests

How to reproduce

  • Configure a unresolvable hostname (eg. not-found.lan)
  • Disable the ambient light check, or run in a dark environment
  • Move into the motion detection circle
  • See the curl request failing (AVM: req_get_wr::curl_easy_perform() failed (Couldn't resolve host name))
  • See the daemon shutting down

Acceptance criteria

  • The daemon should never quit, only on the correct signals

Tasks

  • Remove all exit(); calls from non-binary locations