Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit ea6c67e4 authored by deuce's avatar deuce

Unlock input_thread_mutex before breaking to avoid possible undefined

behaviour on Win32.
parent 45c6e434
......@@ -1305,6 +1305,8 @@ void input_thread(void *arg)
while((rd=RingBufFree(&sbbs->inbuf))==0) {
if(time(NULL)-start>=5) {
rd=1;
if(pthread_mutex_unlock(&sbbs->input_thread_mutex)!=0)
sbbs->errormsg(WHERE,ERR_UNLOCK,"input_thread_mutex",0);
break;
}
YIELD();
......
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