Pārlūkot izejas kodu

- added PROC_RPC (used for now by ctl)
- ctl uses PROC_RPC as rank for its child

Andrei Pelinescu-Onciul 18 gadi atpakaļ
vecāks
revīzija
44b6d92312
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      sr_module.h

+ 2 - 1
sr_module.h

@@ -84,7 +84,8 @@ typedef int (*param_func_t)( modparam_t type, void* val);
 /* Macros - used as rank in child_init function */
 #define PROC_MAIN      0  /* Main ser process */
 #define PROC_TIMER    -1  /* Timer attendant process */
-#define PROC_FIFO     -2  /* FIFO attendant process */
+#define PROC_RPC      -2  /* RPC type process */
+#define PROC_FIFO      PROC_RPC  /* FIFO attendant process */
 #define PROC_TCP_MAIN -4  /* TCP main process */
 #define PROC_UNIXSOCK -5  /* Unix socket server */
 #define PROC_NOCHLDINIT -128 /* no child init functions will be called