summaryrefslogtreecommitdiff
path: root/recordmydesktop
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-12-14 19:28:32 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-12-14 19:28:32 +0000
commitcc374daf38f3f914707a5e28586df3ba45c591af (patch)
tree9aca78e7c56231994dfaba08dd302b82d34457de /recordmydesktop
parent91a13e474ca98fe0410f97f0620e94150837bb91 (diff)
src/register_callbacks.c: when paused, ignore stop (avoids deadlock)
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@477 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop')
-rw-r--r--recordmydesktop/src/register_callbacks.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/recordmydesktop/src/register_callbacks.c b/recordmydesktop/src/register_callbacks.c
index c5d22d1..e161196 100644
--- a/recordmydesktop/src/register_callbacks.c
+++ b/recordmydesktop/src/register_callbacks.c
@@ -35,9 +35,13 @@ void SetPaused(int signum){
void SetRunning(int signum){
- *Running=0;
- if(signum==SIGABRT)
- Aborted=1;
+
+ if(!Paused){
+ *Running=0;
+ if(signum==SIGABRT)
+ Aborted=1;
+ }
+
}
© All Rights Reserved