[PATCH] Hang when moving between editing marks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The attached patch should fix a hang (livelock) which can occur when moving
between editing marks. Blame Timothy Baldwin if it doesn't work - he
suggested it ;-)

-- 
| Darren Salt | nr. Ashington, | d youmustbejoking,demon,co,uk
| Debian,     | Northumberland | s zap,tartarus,org
| RISC OS     | Toon Army      | @
|   Retrocomputing: a PC card in a Risc PC

A shortcut is the longest path between two points.
-------------- next part --------------
#! /bin/sh /usr/share/dpatch/dpatch-run
## 10_livelock.dpatch by Timothy Baldwin <T.E.Baldwin99@xxxxxxxxxxxxxxxxxxx>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix a livelock problem when jumping between editing marks.

@DPATCH@
diff -urNad vdr-1.3.23/dvbplayer.c /tmp/dpep.odvcge/vdr-1.3.23/dvbplayer.c
--- vdr-1.3.23/dvbplayer.c	2005-03-25 23:45:25.789555968 +0000
+++ /tmp/dpep.odvcge/vdr-1.3.23/dvbplayer.c	2005-03-25 23:53:11.273645683 +0000
@@ -376,6 +376,7 @@
         cPoller Poller;
         if (DevicePoll(Poller, 100)) {
 
+           sched_yield();
            LOCK_THREAD;
 
            // Read the next frame from the file:

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux