blob: 7c1cd085eee053de99cbdff318b3bb755e3372fa [file] [log] [blame]
Tomáš Peckad0337072021-01-25 19:57:00 +01001/*
2 * Copyright (C) 2021 CESNET, https://photonics.cesnet.cz/
3 *
4 * Written by Václav Kubernát <kubernat@cesnet.cz>
5 *
6 */
7
8#include <csignal>
Tomáš Peckad0337072021-01-25 19:57:00 +01009#include <unistd.h>
10#include "waitUntilSignalled.h"
11
12void waitUntilSignaled()
13{
14 signal(SIGTERM, [](int) {});
15 signal(SIGINT, [](int) {});
16 pause();
Tomáš Peckad0337072021-01-25 19:57:00 +010017}