~ubuntu-branches/ubuntu/vivid/gtk-vnc/vivid-proposed

« back to all changes in this revision

Viewing changes to src/coroutine_ucontext.c

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2013-12-16 11:39:33 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20131216113933-rowrryjn82up3yr5
Tags: 0.5.3-0ubuntu1
* New upstream release:
  - Support QEMU LED state extension
  - Time out connection attempt after 10 seconds
  - Abort if out of memory when mmap'ing coroutine stack
  - Stop leaking coroutine stack memory
  - Improve perfornmance of ZRLE encoding by avoiding memmove
  - Only trigger keyboard grab sequence upon key release to
    allow modifiers to go to the remote server
  - Avoid busy loop upon I/O error which follows blocking I/O,
    commonly seen when a server drops the connection
  - Fix handling of --no-undefined flag
  - Don't break implicit pointer grab from mouse clicks
  - Don't drop mouse events that are out of bounds, clamp their
    coordinates instead
  - Show how to block all accelerators in gvncviewer demo program
* debian/control:
  - Use standards-version 3.9.4
* debian/libgvnc-1.0-0.symbols:
  - Updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
#include <config.h>
22
22
 
 
23
#include <glib.h>
23
24
#include <sys/types.h>
24
25
#include <sys/mman.h>
25
26
#include <stdio.h>
41
42
            return ret;
42
43
    }
43
44
 
 
45
    munmap(co->cc.stack, co->cc.stack_size);
 
46
 
44
47
    co->caller = NULL;
45
48
 
46
49
    return 0;
63
66
                        MAP_PRIVATE | MAP_ANONYMOUS,
64
67
                        -1, 0);
65
68
    if (co->cc.stack == MAP_FAILED)
66
 
        return -1;
 
69
        g_error("Failed to allocate %u bytes for coroutine stack",
 
70
                (unsigned)co->stack_size);
67
71
    co->cc.entry = coroutine_trampoline;
68
72
    co->cc.release = _coroutine_release;
69
73
    co->exited = 0;