summaryrefslogtreecommitdiff
path: root/src/apps/cam/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/apps/cam/main.cpp')
-rw-r--r--src/apps/cam/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/apps/cam/main.cpp b/src/apps/cam/main.cpp
index 4f87f200..460dbc81 100644
--- a/src/apps/cam/main.cpp
+++ b/src/apps/cam/main.cpp
@@ -344,12 +344,16 @@ std::string CamApp::cameraName(const Camera *camera)
return name;
}
+namespace {
+
void signalHandler([[maybe_unused]] int signal)
{
std::cout << "Exiting" << std::endl;
CamApp::instance()->quit();
}
+} /* namespace */
+
int main(int argc, char **argv)
{
CamApp app;