summaryrefslogtreecommitdiffstats
path: root/procd.c
diff options
context:
space:
mode:
Diffstat (limited to 'procd.c')
-rw-r--r--procd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/procd.c b/procd.c
index 6fb0a72..ad80284 100644
--- a/procd.c
+++ b/procd.c
@@ -40,6 +40,12 @@ static int usage(const char *prog)
int main(int argc, char **argv)
{
int ch;
+ char *dbglvl = getenv("DBGLVL");
+
+ if (dbglvl) {
+ debug = atoi(dbglvl);
+ unsetenv("DBGLVL");
+ }
while ((ch = getopt(argc, argv, "d:s:h:")) != -1) {
switch (ch) {