From 4289b16bab47217e79a043f67e2a0a15c9dbe4ec Mon Sep 17 00:00:00 2001 From: Mario Fink Date: Tue, 19 Jan 2021 20:43:45 +0100 Subject: [PATCH] check process of tdm_reaper --- makefile | 7 +++++++ src/main.cpp | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/makefile b/makefile index e306fdf..5d12de5 100644 --- a/makefile +++ b/makefile @@ -48,6 +48,13 @@ $(SRC).o : lib/$(SRC).cpp lib/$(SRC).hpp lib/tdm_datamodel.hpp clean : rm -f $(EXE) *.o +# --------------------------------------------------------------------------- # +# check process + +checkps : + @ps aux | head -n1 + @ps aux | grep $(EXE) | grep -v "grep" + # --------------------------------------------------------------------------- # # python module # diff --git a/src/main.cpp b/src/main.cpp index 092eb97..618b73e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,6 +4,8 @@ #include #include +#include +#include // ------------------------------------------------------------------------- // @@ -239,6 +241,8 @@ int main(int argc, char* argv[]) // } } + std::this_thread::sleep_for(std::chrono::milliseconds(10000)); + return 0; }