Browse Source

is_main made accessible from modules on destroy

Jan Janak 23 years ago
parent
commit
71bb231e4d
2 changed files with 3 additions and 1 deletions
  1. 2 0
      globals.h
  2. 1 1
      main.c

+ 2 - 0
globals.h

@@ -68,4 +68,6 @@ extern int process_no;
 
 
 extern int reply_to_via;
 extern int reply_to_via;
 
 
+extern int is_main;
+
 #endif
 #endif

+ 1 - 1
main.c

@@ -258,7 +258,7 @@ extern FILE* yyin;
 extern int yyparse();
 extern int yyparse();
 
 
 
 
-static int is_main=0; /* flag = is this the  "main" process? */
+int is_main=0; /* flag = is this the  "main" process? */
 
 
 char* pid_file = 0; /* filename as asked by use */
 char* pid_file = 0; /* filename as asked by use */