Skip to content
Snippets Groups Projects
Commit 27b1b6ae authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Log errno description upon QWK pack mutex file creation failure

parent db091b5b
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
...@@ -4189,8 +4189,8 @@ static void ctrl_thread(void* arg) ...@@ -4189,8 +4189,8 @@ static void ctrl_thread(void* arg)
lprintf(LOG_INFO,"%04d <%s> creating QWK packet...",sock,user.alias); lprintf(LOG_INFO,"%04d <%s> creating QWK packet...",sock,user.alias);
sprintf(str,"%spack%04u.now",scfg.data_dir,user.number); sprintf(str,"%spack%04u.now",scfg.data_dir,user.number);
if(!fmutex(str, startup->host_name, /* max_age: */60 * 60)) { if(!fmutex(str, startup->host_name, /* max_age: */60 * 60)) {
lprintf(LOG_WARNING, "%04d <%s> !ERROR %d creating mutex-semaphore file: %s" lprintf(LOG_WARNING, "%04d <%s> !ERROR %d (%s) creating mutex-semaphore file: %s"
,sock, user.alias, errno, str); ,sock, user.alias, errno, strerror(errno), str);
sockprintf(sock,sess,"451 Packet creation already in progress (are you logged-in concurrently?)"); sockprintf(sock,sess,"451 Packet creation already in progress (are you logged-in concurrently?)");
filepos=0; filepos=0;
continue; continue;
......
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