Skip to content
Snippets Groups Projects
Commit c7be6c21 authored by rswindell's avatar rswindell
Browse files

Fixed up terminate(): loops every second instead of ten seconds (ugh),

beautified "still running" log entries.
parent 8ef46159
No related branches found
No related tags found
No related merge requests found
...@@ -666,6 +666,8 @@ static void web_terminated(int code) ...@@ -666,6 +666,8 @@ static void web_terminated(int code)
static void terminate(void) static void terminate(void)
{ {
ulong count=0;
bbs_terminate(); bbs_terminate();
ftp_terminate(); ftp_terminate();
web_terminate(); web_terminate();
...@@ -675,17 +677,20 @@ static void terminate(void) ...@@ -675,17 +677,20 @@ static void terminate(void)
#endif #endif
while(bbs_running || ftp_running || web_running || mail_running || services_running) { while(bbs_running || ftp_running || web_running || mail_running || services_running) {
if(bbs_running) if(count && (count%10)==0) {
lputs("BBS Thread Still Running"); if(bbs_running)
if(ftp_running) bbs_lputs("BBS System thread still running");
lputs("FTP Thread Still Running"); if(ftp_running)
if(web_running) ftp_lputs("FTP Server thread still running");
lputs("WEB Thread Still Running"); if(web_running)
if(mail_running) web_lputs("Web Server thread still running");
lputs("MAIL Thread Still Running"); if(mail_running)
if(services_running) mail_lputs("Mail Server thread still running");
lputs("SERVICES Thread Still Running"); if(services_running)
SLEEP(10000); services_lputs("Services thread still running");
}
count++;
SLEEP(1000);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment