Commit 6082b52e authored by rswindell's avatar rswindell
Browse files

Node rerun flag is now ignored if the "NO_RECYCLE" BBS option flag is set.

parent f8f21635
...@@ -4605,23 +4605,25 @@ NO_SSH: ...@@ -4605,23 +4605,25 @@ NO_SSH:
while(!terminate_server) { while(!terminate_server) {
if(node_threads_running==0) { /* check for re-run flags */ if(node_threads_running==0) { /* check for re-run flags and recycle/shutdown sem files */
bool rerun=false;
for(i=first_node;i<=last_node;i++) {
if(sbbs->getnodedat(i,&node,0)!=0)
continue;
if(node.misc&NODE_RRUN) {
sbbs->getnodedat(i,&node,1);
if(!rerun)
lprintf(LOG_INFO,"Node %d flagged for re-run",i);
rerun=true;
node.misc&=~NODE_RRUN;
sbbs->putnodedat(i,&node);
}
}
if(rerun)
break;
if(!(startup->options&BBS_OPT_NO_RECYCLE)) { if(!(startup->options&BBS_OPT_NO_RECYCLE)) {
bool rerun=false;
for(i=first_node;i<=last_node;i++) {
if(sbbs->getnodedat(i,&node,0)!=0)
continue;
if(node.misc&NODE_RRUN) {
sbbs->getnodedat(i,&node,1);
if(!rerun)
lprintf(LOG_INFO,"Node %d flagged for re-run",i);
rerun=true;
node.misc&=~NODE_RRUN;
sbbs->putnodedat(i,&node);
}
}
if(rerun)
break;
if((p=semfile_list_check(&initialized,recycle_semfiles))!=NULL) { if((p=semfile_list_check(&initialized,recycle_semfiles))!=NULL) {
lprintf(LOG_INFO,"%04d Recycle semaphore file (%s) detected" lprintf(LOG_INFO,"%04d Recycle semaphore file (%s) detected"
,telnet_socket,p); ,telnet_socket,p);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment