Explorar o código

is_main made accessible from modules on destroy

Jan Janak %!s(int64=23) %!d(string=hai) anos
pai
achega
71bb231e4d
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  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 is_main;
+
 #endif

+ 1 - 1
main.c

@@ -258,7 +258,7 @@ extern FILE* yyin;
 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 */