summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vmon.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vmon.c b/src/vmon.c
index 927323b..6a08a14 100644
--- a/src/vmon.c
+++ b/src/vmon.c
@@ -731,6 +731,14 @@ static vmon_t * vmon_startup(int argc, const char * const *argv)
}
}
+ /* lets do some sanity checks; don't fail, but speak up, since I'm not interested */
+ if (vmon->headless && vmon->linger)
+ VWM_ERROR("FYI: combining --headless and --linger likely doesn't make sense");
+
+ if (vmon->reaper && !vmon->execv)
+ VWM_ERROR("FYI: using --reaper without a command (e.g. w/--pid or the default '--pid 1' equiv) likely doesn't make sense");
+
+
return vmon;
_err_win:
© All Rights Reserved