From 6193d2cda2f2ee261c8366396fdf6c976fda876a Mon Sep 17 00:00:00 2001 From: Patrick LeBlanc Date: Mon, 10 Jun 2019 08:10:10 -0500 Subject: [PATCH] Made mcsadmin and postConfigure print a warning if SKIP_OAM_INIT is set. --- oamapps/mcsadmin/mcsadmin.cpp | 7 +++++++ oamapps/postConfigure/postConfigure.cpp | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/oamapps/mcsadmin/mcsadmin.cpp b/oamapps/mcsadmin/mcsadmin.cpp index c0507aadd..4f5d37cd9 100644 --- a/oamapps/mcsadmin/mcsadmin.cpp +++ b/oamapps/mcsadmin/mcsadmin.cpp @@ -172,6 +172,13 @@ void setupSignalHandlers() int main(int argc, char* argv[]) { + +// print a warning if this is a developer build +#ifdef SKIP_OAM_INIT + cout << "SKIP_OAM_INIT is set" << endl; + sleep(2); +#endif + #ifndef _MSC_VER setuid(0); // set effective ID to root; ignore return status #endif diff --git a/oamapps/postConfigure/postConfigure.cpp b/oamapps/postConfigure/postConfigure.cpp index eee8e0edf..85574ea4c 100644 --- a/oamapps/postConfigure/postConfigure.cpp +++ b/oamapps/postConfigure/postConfigure.cpp @@ -215,6 +215,13 @@ typedef struct _thread_data_t int main(int argc, char* argv[]) { + +// print a warning if this is a developer build +#ifdef SKIP_OAM_INIT + cout << "SKIP_OAM_INIT is set" << endl; + sleep(2); +#endif + Oam oam; string parentOAMModuleHostName; ChildModuleList childmodulelist;