[xiph-cvs] cvs commit: icecast/src source.c
Karl Heyes
karl at xiph.org
Wed Dec 17 14:54:44 PST 2003
karl 03/12/17 17:54:44
Modified: src source.c
Log:
failure case, keep the source count in sync with the number of sources
running, locking for shutdown was also affected.
Revision Changes Path
1.62 +4 -0 icecast/src/source.c
Index: source.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/source.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- source.c 2 Dec 2003 01:11:12 -0000 1.61
+++ source.c 17 Dec 2003 22:54:43 -0000 1.62
@@ -241,6 +241,10 @@
if(source->send_return) {
client_send_404(source->client, "Mountpoint in use");
}
+ global_lock();
+ global.sources--;
+ global_unlock();
+ thread_rwlock_unlock(source->shutdown_rwlock);
thread_exit(0);
return NULL;
}
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list