[vlc-devel] commit: Ignore vlc_object_wait return value ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat May 31 17:59:28 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat May 31 18:30:23 2008 +0300| [119907171ba2165f0259e37baf19cdf9e9f595a5]
Ignore vlc_object_wait return value
We need to check vlc_object_alive() anyway, due to the intrinsic race
condition whereby the thread is killed before it's got the chance to
lock its object and call vlc_object_wait().
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=119907171ba2165f0259e37baf19cdf9e9f595a5
---
src/network/httpd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/network/httpd.c b/src/network/httpd.c
index b5cca18..7a7ef80 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -2453,7 +2453,7 @@ retry:
{
b_die = !vlc_object_alive( host );
if( !b_die )
- b_die = vlc_object_wait( host );
+ vlc_object_wait( host );
}
vlc_object_unlock( host );
More information about the vlc-devel
mailing list