[vlc-devel] commit: Revert "Handle EINTR from sigwait" ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Jul 11 17:33:57 CEST 2009
vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Sat Jul 11 18:33:35 2009 +0300| [8d1da7b33fbe979336e64c7ae540e3da09401640] | committer: Rémi Denis-Courmont
Revert "Handle EINTR from sigwait"
This reverts commit 292a59e277690465141cd432fa565ea8276f8729.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8d1da7b33fbe979336e64c7ae540e3da09401640
---
modules/control/signals.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/modules/control/signals.c b/modules/control/signals.c
index 1435cd3..7b63cbc 100644
--- a/modules/control/signals.c
+++ b/modules/control/signals.c
@@ -24,7 +24,6 @@
#include <signal.h>
#include <time.h>
-#include <assert.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
@@ -101,15 +100,8 @@ static void *SigThread (void *data)
do
{
- switch (sigwait (&set, &signum))
- {
- case EINTR:
- continue;
- case 0:
- break;
- default:
- assert (0);
- }
+ sigwait (&set, &signum);
+
#ifdef __APPLE__
/* In Mac OS X up to 10.5 sigwait (among others) is not a pthread
* cancellation point */
More information about the vlc-devel
mailing list