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

Using server socket descriptor in more log output lines (instead of "0000").

parent c9b4b048
No related branches found
No related tags found
No related merge requests found
......@@ -4123,7 +4123,8 @@ void DLLCALL bbs_thread(void* arg)
break;
if(!(startup->options&BBS_OPT_NO_RECYCLE)) {
if((p=semfile_list_check(&initialized,&recycle_semfiles))!=NULL) {
lprintf(LOG_INFO,"0000 Recycle semaphore file (%s) detected",p);
lprintf(LOG_INFO,"%04d Recycle semaphore file (%s) detected"
,telnet_socket,p);
break;
}
#if 0 /* unused */
......@@ -4131,15 +4132,17 @@ void DLLCALL bbs_thread(void* arg)
startup->recycle_now=TRUE;
#endif
if(startup->recycle_now==TRUE) {
lprintf(LOG_INFO,"0000 Recycle semaphore signaled");
lprintf(LOG_INFO,"%04d Recycle semaphore signaled",telnet_socket);
startup->recycle_now=FALSE;
break;
}
}
if(((p=semfile_list_check(&initialized,&shutdown_semfiles))!=NULL
&& lprintf(LOG_INFO,"0000 Shutdown semaphore file (%s) detected",p))
&& lprintf(LOG_INFO,"%04d Shutdown semaphore file (%s) detected"
,telnet_socket,p))
|| (startup->shutdown_now==TRUE
&& lprintf(LOG_INFO,"0000 Shutdown semaphore signaled"))) {
&& lprintf(LOG_INFO,"%04d Shutdown semaphore signaled"
,telnet_socket))) {
startup->shutdown_now=FALSE;
terminate_server=TRUE;
break;
......
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