Skip to content

Commit

Permalink
process_bit removed
Browse files Browse the repository at this point in the history
  • Loading branch information
jiriatipteldotorg committed Sep 10, 2002
1 parent c0656aa commit a76545c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion globals.h
Expand Up @@ -51,7 +51,7 @@ extern int server_signature;
/*
* debug & log_stderr moved to dprint.h*/

extern process_bm_t process_bit;
/* extern process_bm_t process_bit; */
extern int *pids;

extern int cfg_errors;
Expand Down
10 changes: 5 additions & 5 deletions main.c
Expand Up @@ -248,7 +248,7 @@ struct host_alias* aliases=0; /* name aliases list */

/* ipc related globals */
int process_no = 0;
process_bm_t process_bit = 0;
/* process_bm_t process_bit = 0; */
#ifdef ROUTE_SRV
#endif

Expand Down Expand Up @@ -509,7 +509,7 @@ int main_loop()
if (pid==0){
/* child */
/* timer!*/
process_bit = 0;
/* process_bit = 0; */
for(;;){
sleep(TIMER_TICK);
timer_ticker();
Expand All @@ -526,7 +526,7 @@ int main_loop()
}
/* main process, receive loop */
pids[0]=getpid();
process_bit = 1;
/* process_bit = 1; */
process_no=0; /*main process number*/

/* We will call child_init even if we
Expand Down Expand Up @@ -575,7 +575,7 @@ int main_loop()
LOG(L_ERR, "init_child failed\n");
goto error;
}
process_bit = 1 << (i+r*children_no); /*or process_no-1*/
/* process_bit = 1 << (i+r*children_no); */ /*or process_no-1*/
#ifdef STATS
setstats( i+r*children_no );
#endif
Expand Down Expand Up @@ -628,7 +628,7 @@ int main_loop()
printf("% 3d % 5d\n", r, pids[r]);
}
process_no=0;
process_bit = 0;
/* process_bit = 0; */
is_main=1;

for(;;){
Expand Down

0 comments on commit a76545c

Please sign in to comment.